zamithal

joined 2 years ago
[–] zamithal@programming.dev 22 points 1 month ago (2 children)

These comments are all so aggressive, let me try answering this in a less rude way.

App is short for application, at the end of the day no matter where you install an app from an app is a packaged chunk of software meant to accomplish a task. Microsoft word is an app, chrome is an app, flappy bird is an app, calculator is an app, any "program" that you launch is an app.

Now where the waters get muddy is app stores. App stores such as the apple store or Google play are apps specifically built to help you install other apps. The intent of these is to provide users a safe location they can search for other apps and install them without fear of viruses and receive updates automatically. Windows and Linux have their own app stores too, the windows store, though sad and decrepit is supposed to provide the same assurances as Mac's app store.

Now can you use the computer without apps? Yes! Your computer just won't do much since you've forgone your calculator, games, and any other purpose built software you might have installed.

Can you use the computer without the "app store"? Yes! You can install the application from anywhere, it doesn't need to be the app store. Apple and Google get a cut of the money made by apps sold on the app store. Because of this they are incentives to discourage users from installing apps from elsewhere. They've called installing apps from elsewhere "side loading" in order to make it sound scary and not normal but it is in fact the normal way we have been installing apps since before these app stores arrived.

The last type of app I want to call out because it's a bit different. Web apps are apps you can use by going to a web page. These apps are installed on someone else's computer and you get to use it when you open the page. It's still an app, you just don't have to install it. There are special types of computers (for example. Chromebooks) that are built around these types of apps.

Hope this helps!

[–] zamithal@programming.dev 1 points 3 months ago (1 children)

When we talk about these types of topics on the Internet we are usually all speaking about slightly different things. For example "Coding will be replaced by AI" can be interpreted as 100% (every programmer) or partial (X%).

When we talk in the 100% sense the bar AI must achieve is MUCH higher than replacing some percentage. To replace 100% of programmers the AI needs to not only be on par with principal engineers but also be able to understand domain, real world implications, stakeholder input and a bunch of other goodies engineers do behind the scenes other than writing code.

When we talk about the partial percentage, the bar is low. Companies already take shortcuts such as outsourcing or greenlighting a proof of concept for production without proper design. There are MANY terrible programmers employed today who produce code slower and worse than even the halicigenic mess that is today's modern llms.

The budget for replacing these subpar programmers is proportional to their salary. If we choose the arbitrary pay of 75k for these programmers, that means we could spend up to 75k on AI compute costs per year and still break even. This doesn't even need to be fully autonomous as the remaining senior programmers will be expected to pick up the slack whether they want to or not.

Tldr;

AI will definitely replace some programmers but not all programmers.

[–] zamithal@programming.dev 5 points 6 months ago (1 children)

This is for my personal business prelaunch. I'm particularly interested in the "illegitimate" traffic. I have a suite of telemetry infrastructure to analyze incoming traffic and want to see what it produces before I don't have the option to "turn off the traffic" because I'm not the one causing it.

I can outsource things like ddos protection to my cdn provider, but that would still be just kinda hoping I didn't have any attackable surface I didn't think of prelaunch.

 

I want to rent a botnet and point it at my own website + service stack so that I can better understand how they work and protect myself against it.

I'm looking for things like automated web scraping, targeted ddos, llm generated fake comments and stuff like that. Basically, I want to test my services against my stuff before I launch.

I don't believe this is illegal as I'm targeting myself for education.

 

Hello,

I am attempting to associate user clicks into a trace using open telemetry.

using the auto instrumentation library, I want click to result in a span under a per-page span.

/foobar

  • click
  • click
  • click
  • navigate /barfoo

/barfoo

  • click
  • click
  • click

like that.

I can get all my click traces to populate but cannot figure out how to associate them to a parent span for the page.

I've been following otel docs, but it really only seems to cover async calls to my API.

https://opentelemetry.io/docs/languages/js/instrumentation/

user interaction instrumentation library:

https://www.npmjs.com/package/@opentelemetry/instrumentation-user-interaction

Any tips would be appreciated :)

EDIT: I forgot to mention this is a React Single page Application.

[–] zamithal@programming.dev 2 points 9 months ago

Unfortunate, this seems like something that should be pretty trivial on the surface but I can see why I'd need a non react solution.

I'll probably break out of react and walk the dom, seems like it will work best for me.

Thanks for the help!

[–] zamithal@programming.dev 1 points 9 months ago (2 children)

The intent of this hoc is to generate a minimap for the wrapped component, it walks down the tree finding all h1, h2 etc components and generates a new minimap (a list of clickable links to the sections) from that data in a fragment. That fragment is then rendered.

 

I'm looking to write an HOC that counts and prints to the console the number of elements in the wrapped component. For example:

const Foo: FC<{}> = ({}) => {
    return (
        <div>
            <h1>Foo</h1>
            <p>Bar</p>
        </div>
    )
}


export default countH1(Foo)

this should print 1 and then return Foo as is for rendering.

React.Children.forEach(child => {...})

seems to be about the explicit children property and not descendant html elements. How can I achieve this?

 

I have a long upcoming flight and am looking for some books to read on advanced game networking.

I'm looking for things like multiplayer server architecture, load balancing over some continuous environment, state synchronization, lag compensation, and security.

Any recommendations?

[–] zamithal@programming.dev 2 points 9 months ago

Variable refresh rate is cool but 99% of my games are low res or 2d pixel art, so I haven't been too interested in HDR. Very cool though will tinker with it :)

[–] zamithal@programming.dev 2 points 9 months ago (2 children)

Well, that didn't work so I proceeded with the fresh install.

It works right out of the box. No strange behavior and it's lightning fast. I'm both relieved to have it working and a little sad that the answer was "kill it with fire" as I've learned nothing.

Anyway, thank you for your help. :) Time to go get everything up again

[–] zamithal@programming.dev 1 points 9 months ago (4 children)

looks like it is.

ii  libvulkan1:amd64                        1.3.280.0-1pop1~1722439676~22.04~a41a7d6                     amd64        Vulkan loader library
ii  libvulkan1:i386                         1.3.280.0-1pop1~1722439676~22.04~a41a7d6                     i386         Vulkan loader library
ii  mesa-vulkan-drivers:amd64               24.0.3-1pop1~1711635559~22.04~7a9f319                        amd64        Mesa Vulkan graphics drivers
ii  mesa-vulkan-drivers:i386                24.0.3-1pop1~1711635559~22.04~7a9f319                        i386         Mesa Vulkan graphics drivers
ii  vulkan-tools                            1.3.204.0+dfsg1-1                                            amd64        Miscellaneous Vulkan utilities
➜  ~ 

The whole log is too large for lemmy, but here is a pastebin link: https://pastebin.com/sxU2QYTc

System76 is advising I go full nuclear and reinstall from recovery partition, which I don't really think would fix anything and I'm hesitant to do.

[–] zamithal@programming.dev 1 points 9 months ago (6 children)

This removes that "Failed to get adapters" error from the proton log but the behavior remains the same and the VK_ERROR_INITIALIZATION_FAILED still persists

[–] zamithal@programming.dev 1 points 9 months ago* (last edited 9 months ago) (8 children)

Well, back at it again. Tried ProtonGE with the same results. But the vulkan logs are interesting!

cat ~/steam-220200.log | grep err

err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED
err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED
err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED
err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED
err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED
err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED

EDIT: more context

info:  Presenter: Actual swapchain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_SRGB
info:    Color space:  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info:    Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR (dynamic: no)
info:    Buffer size:  1920x1080
info:    Image count:  4
err:   Presenter: Failed to create Vulkan swapchain: VK_ERROR_INITIALIZATION_FAILED

It's filled with this error. The entire log is massive I cant even upload it to pastebin. If you want me to search for something specific lmk or how I can supply the entire log.

EDIT2: also found:

99664.262:00d4:00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters

99670.682:0180:0184:err:ole:com_get_class_object class {82c5ab54-c92c-4d52-aac5-27e25e22604c} not registered
99670.683:00e8:033c:warn:threadname:NtSetInformationThread Thread renamed to L"wine_rpcrt4_io"
99670.683:0180:0184:err:ole:create_server class {82c5ab54-c92c-4d52-aac5-27e25e22604c} not registered
99670.684:0180:0184:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
99670.684:0180:0184:err:ole:com_get_class_object no class object {82c5ab54-c92c-4d52-aac5-27e25e22604c} could be created for context 0x15

[–] zamithal@programming.dev 1 points 9 months ago

When I select proton-experimental as the version under force proton runtime, I actually see usage in rocm-smi, however I get a black screen or that weird "see behind my window effect I screenshotted" in another comment. When I let it choose, I can see the game but sit at 0% utilization.

[–] zamithal@programming.dev 1 points 9 months ago (1 children)

What do you mean? There are the following:

Proton experimental Steam Linux runtime 1.0 Legacy runtime 1.0 Proton hotfix Proton 9.0-4 ....

If you mean just the global checkbox, yes that's on

 

I purchased a system76 Thelio Mira Elite With a AMD Radeon RX 7900 XT. I kinda regret not going with Nvidia at this point but it is what it is. I primarily use it as a developer workstation, but want to play games on it as well so I can be rid of my windows box.

I didn't expect it to be able to play the latest and greatest games but I did expect it to be able to play older titles reasonably well. Games launch from steam and seem to work, but I'm getting between 0 and 10 fps on the title screen of Kerbal Space Program. Other games are similarly functional but poorly performing.

Where do I start? How can I ensure my GPU is being leveraged? Is this as good as it gets?

 

I've got a Pop_OS system76 machine that runs well straight out of the box. I love it and it's my daily driver. However I'd like to learn more about how it works, Linux internals and how to use it to the best of its capabilities. I want to learn about things like system-d Wayland, error logging (there seems to be a few of them) directory structure and drivers. For instance, how do I know that my and GPU is being leveraged to the fullest?

I DONT want to build a system from the ground up, which I expect to be a common suggestion.

I'd prefer to read literature, blogs, and articles relevant to me, my system and not dated.

Any suggestions? Thanks in advance

 

I'm looking for a set of gamepads to play local co-op games with my fiance. A while back I purchased an Xbox Elite controller expecting it to be sturdy since, it's Microsoft's premium controller targeted at both Xbox and PC. Shortly later, my bumper broke which appears to be because the bumpers are just a piece of plastic being bent over and over. It looks like they ported this same defect over to the Xbox Elite 2 controller without fixing it and at this point, I'm done.

I was looking at Sony controllers, I'm a little worried about there compatibility with PC (Windows and Linux) and also the fact that I have large hands.

Scuff also came up, but their prices are pretty high and IDkK how durable they are.

What do you suggest?

view more: next ›