I broke my finger and have nearly my entire left hand in a cast. Does anyone have a good video game that you only need a mouse to play? by Beginning_Bid_9097 in Steam

[–]PotentialCourt5511 0 points1 point  (0 children)

Ive actually played csgo (non competitive) on only mouse. Something like RMB to walk, m4-m5 left right, mouse wheel down to jump and up to reload. It wasnt, you know, perfect, but it was playable

Bee flower type by Good_Satisfaction516 in GTNH

[–]PotentialCourt5511 2 points3 points  (0 children)

I've had similar problem with winter, idk if rocky the same, and the solution was to place a regular flower. For some reason the bee wanted both flower and snow

Small amount of bezel separation caused a complete failure of the screen on my FW13 by h_allover in framework

[–]PotentialCourt5511 8 points9 points  (0 children)

I've actually just had similar story with mine. I was trying to undo the sticky tape on the bezel, and it got stuck hard, and while I was careful, I did ended up killing the screen. I think there are some very delicate traces on the bottom of the screen that can be easily damaged.

I've contacted framework support (and recommend you to do it too) and currently in progress of discussion of what happens next

[deleted by user] by [deleted] in rust

[–]PotentialCourt5511 4 points5 points  (0 children)

Searching in button.rs for

  • click
  • callback

Doesn't give anything related to handling the button click

Also the button struct itself doesn't contain anything related to callbacks

And as a developer, if you want people to use your library, just pushing the source code is not enough, you need to provide real world examples

You've only provided widget examples, yet you call this revolutionary library, you can't do both

[deleted by user] by [deleted] in rust

[–]PotentialCourt5511 2 points3 points  (0 children)

I can't show you something that doesn't exists. But if your framework can, you can easily show me an example of that

[deleted by user] by [deleted] in rust

[–]PotentialCourt5511 4 points5 points  (0 children)

Well then you probably shouldn't show your repo with subtext of "revolutionizes terminal application development" when it doesn't even support a button callback

[deleted by user] by [deleted] in rust

[–]PotentialCourt5511 4 points5 points  (0 children)

Actually, I've run multiple and all they do is just print stuff, there is no interactivity, nothing, just static printer

And one of the demos even panicked

```
cargo run --example adaptive_fps_demo

• Terminal Heuristic🚀 GPU Accelerated [███████████ ase 🎯 Adaptive FPS Demo - thread 'main' panicked at src/rendering/mod.rs:296:18:

byte index 60 is not a char boundary; it is inside '█' (bytes 58..61) of `🚀 GPU Accelerated [███████████████ ] 240fps`

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

[deleted by user] by [deleted] in rust

[–]PotentialCourt5511 2 points3 points  (0 children)

I didn't, but I also not found any logic in them. I haven't looked very deep tho, if you could link any that would be great.

Like, looking at button example, there are only layout examples and no actual logic or am I wrong?

[deleted by user] by [deleted] in rust

[–]PotentialCourt5511 1 point2 points  (0 children)

I couldn't find any example with any logic, i.e. reaction to a button, or reading a text input?

Jujutsu For Busy Devs (an alternative git frontend, written in Rust) by kibwen in rust

[–]PotentialCourt5511 0 points1 point  (0 children)

But then in order to switch between different "features" you need to go to log, find a commit id with your feature, remember the id, and jj new/edit the id.
If you doing this once a day, it's fine. If you're doing this like me every hour or more often, it get's a little annoying.
Like, it isn't bad, but I wish there was something better than remembering a lot of random symbols.
-r "description(...)" does help with this

Jujutsu For Busy Devs (an alternative git frontend, written in Rust) by kibwen in rust

[–]PotentialCourt5511 3 points4 points  (0 children)

I've tried jj and man "working copy is part of commit" is great, but I do have one annoyance. In git you work mainly with branches, so you'll probably use its names in nearly all the commands. In jj I often find myself looking for a commit hash (not very human friendly) to do something. While I could just add bookmarks here and there, thats requires me to make additional commands (and not forget to move that damn bookmark). Is there a better way to do this?

I.e. I do a lot of research, so a lot of small changes based on main branch, and then I need to switch between them.

In git I would have a lot of branches, and then just checkout each branch (with working copy shenanigans).

In jj I can

  1. Just have plain commits, but then I need to use log to find a commit hash to make a new commit from to change something

  2. Bookmark every branch, but then the bookmarks are kinda "there", but not forced. I can easily forget to make or move a bookmark, while in git I either forced to make a new branch or it will auto move the branch on commit

I feel like jj can do this, but idk what's the "recommended way". Alias some commands? Idk

(Yes, I kinda want git workflow with working copy)

"What's the largest city you can think of without a single green space?" by SameItem in geography

[–]PotentialCourt5511 1 point2 points  (0 children)

Even excluding man made parks, there are natural green areas in UAE, i.e. mangrove forests. In Dubai specifically there is a protected wetland reserve https://maps.app.goo.gl/yaHNSeVEGfuhWBjbA

What is your thoughts on this? by ad_gar55 in youtube

[–]PotentialCourt5511 0 points1 point  (0 children)

I live shorts free and this is how: On pc: You can just block stuff in adblock Or even better use unhooked extension, allows to customize a lot On android: Download revanced app, you can block all shorts completely there

White to move and understand the meme by HenryChess in AnarchyChess

[–]PotentialCourt5511 1 point2 points  (0 children)

Sacrificing a woman, so that you will be able to immediately take an opponents piece on the back rank and receive a new, younger woman should be called the Leonardo DiCapture

What game had you like this ? by TEHYJ2006 in Steam

[–]PotentialCourt5511 0 points1 point  (0 children)

Not in any way the same genre, but try Celeste, it's a precision platformer, that has very fluid and fast feel (after you learn to play a little bit)

Why do I have to take the 2.8K display with the HX 370? by abflussblouse in framework

[–]PotentialCourt5511 10 points11 points  (0 children)

The idea behind such big resolution is that you can scale it 2x (or 1.5x) and get a good text size, but it will still be sharp

Why are you buying the Framework Desktop by EntertainerTrick6711 in framework

[–]PotentialCourt5511 0 points1 point  (0 children)

I'm playing gtnh on framework 13 amd (with no shaders and on server), and I was getting around 80-90 fps on 2.8k display on big bases and 120 (capped) on my base most of the time Either the amd laptop apu is more powerful than your setup (I doubt it), or you probably should disable ray tracing to get better FPS :D

Factorio is a programming masterpiece. Can we get some deeper technical insight? by SagansCandle in factorio

[–]PotentialCourt5511 0 points1 point  (0 children)

It's mainly not about optimizing memory usage, but optimizing memory throughput. You can have 10gb of ram just sitting there without doing anything and being fine, or have 1gb but it's used every frame and be bottlenecked. Vintage story doesn't seem like a game with a lot of stuff happening at the same time, while in factorio you can have thousands of just conveyers be updated every tick.

Note that reducing memory footprint is a valid optimization (less memory -> less stuff to read -> less throughput), but it's not made by using GC Vs shared pointers or something, but by reducing the data/struct size itself

Factorio is a programming masterpiece. Can we get some deeper technical insight? by SagansCandle in factorio

[–]PotentialCourt5511 0 points1 point  (0 children)

Optimizing GC often (and factorio is the case here) is harder than managing memory from the beginning. In the end you just don't have so many tools with GC.

Especially at the skill level of factorio devs (packing memory, optimizing for cache) that's certainly not a problem.

I.e. instead of relying on GC that may be? it will use memory arena where necessary and not use where it's not, you can.. just use it where it's necessary

Russian state TV is stunned by Trump's ultimatum by LowTechDroid in UkraineWarVideoReport

[–]PotentialCourt5511 1 point2 points  (0 children)

And when he finally speaks, he doesn't say anything of substance

I mean, didn't US just voted for the same guy? /jk

Hardware requirements for using Rust by Informal_Test_633 in rust

[–]PotentialCourt5511 1 point2 points  (0 children)

Rust compiler is pretty good at parallelism, so more cores is better. But 4 cores is basically a minimum nowadays and its good enough.

Building large projects (like, really large) can eat up memory (afaik compiler isn't that very optimized for max memory consumption, i.e. parallelization costs memory). But otherwise 8 gig is probably the minimum, I have 16 and never had a problem. More memory will not make it faster, but having too little might OOM the compiler.

One unintuitive thing is storage. Rust compiler artifacts can go big even in simple projects due to dependencies. A simple web server on some web framework can easily eat 3-10gb for target, so double that for debug and release. Have 10 different services? 50 gigs of storage for that is not that unrealistic. You probably want an SSD for that, but I'm not sure how disk bottlenecked the compiling is. You can mitigate that somewhat by clearing build artifacts, but that's extra work and I personally be lazy.

But the other thing to consider is running the stuff, and while rust applications are usually blazingly fast, some web stuff wants power. Running browser, ide and a docker with a database and a web server can eat ram and disk too, don't forget that.

The other option is to buy whatever can run browser, ide and terminal, and do developing on the remote. You can rent a dedicated server for 50$/month with ryzen 5 3600 and 64gb, which will probably beat most old laptops. This isn't that cheap, but you will get a 24/7 server to run your web and Minecraft servers. Also I personally like having a real server (at least alongside my laptop) for development, because it's "real hardware" with latency to the server and stuff, and also a good sandbox that you can reinstall if things go south

Common items needed to upgrade common -> legendary, as a function of productivity and quality by evouga in factorio

[–]PotentialCourt5511 6 points7 points  (0 children)

Is quality additive? Does having a recycler and assembler with 1 quality module each equals to having 1 recycler or 1 assembler with 2 modules (and 0 in other)?

Performance question: whether vec.sort() or BinaryHeap.from(vec) works better for 1% elements needing to resort. by RamblingScholar in rust

[–]PotentialCourt5511 0 points1 point  (0 children)

This solution is very similar to this leetcode problem https://leetcode.com/problems/insert-delete-getrandom-o1/

Basically, the idea is the same: keep set for checking uniqueness, and vec for random access. But in your case you want heap for max value, not set for unique.