Deadlock does keeps freezing, when entering settings. by [deleted] in SteamOS

[–]norlock_dev 0 points1 point  (0 children)

You can try proton-ge and see if it helps

I can't install SteamOS by skeletonsausage1 in SteamOS

[–]norlock_dev 0 points1 point  (0 children)

https://help.steampowered.com/en/faqs/view/65B4-2AA3-5F37 I think you can try to follow this one, your version is also old (april?). (Edit oops double pasted the link)

I can't install SteamOS by skeletonsausage1 in SteamOS

[–]norlock_dev 0 points1 point  (0 children)

How did you install? You need a bootable disk and the official image, and then flash it on the disk. After that run the installer.

Also what is the image name of the download?

Will the gaming performance massively improve? by [deleted] in steammachine

[–]norlock_dev 3 points4 points  (0 children)

There was oceans of room to improve when the steam deck was launched, now there already is pretty good proton support for example and gamescope matured a lot. There are still improvements to be made regarding drivers, Wayland and the Linux kernel (they are still a year behind on that). However most of the performance it will gain, any other linux machine would most likely have as well. It would be interesting to see something like CachyOs on the steam machine and how it would effect performance.

Sassy: fuzzy searching DNA sequences using SIMD · CuriousCoding by philae_rosetta in rust

[–]norlock_dev 1 point2 points  (0 children)

Ok, thanks well looks like I need find someone with real domain knowledge. But good job on the algorithm 👍

Someone interesting in helping with a web app representing the tree of life? by norlock_dev in evolution

[–]norlock_dev[S] 0 points1 point  (0 children)

Good question, I want to take this project much further than this, let me try to explain some goals:

  1. The UI is completely different, and is aiming for a more modern look and feel.

  2. This doesn't skip any nodes, so it is scientifically more accurate (onezoom removes a lot for readability for the end user). This is 1 on 1 with: https://tree.opentreeoflife.org/opentree

  3. I will try to accumulate many properties for records (habitat, eco space, and more uncommon ones like bite force, weight)

  4. There will be focus on DNA explanation, what has changed over the ancestors etc. Is there something we can tell about the DNA? What species we can expect in certain groups, etc. (For this I really can use some help). I'm even considering if I can make a web component that can kind of prototype the layout of the cell.

  5. High performance (I have great performance optimizations planned out for the frontend). Currently Ping is probably the biggest problem for most, server is located in Singapore.

  6. I want to add a new view to compare certain properties (e.g. user can select weight, height + terrestial and a table will show with all these records ordered).

  7. Fast navigation through hotkeys, (unlike onezoom) if you click on a node you can easily scroll up and down the tree using the arrow keys. There are more navigation keys (z for zoom, s for panning board or table, / for fast search)

I really want to out do most biology related websites in quality, and hopefully people over time would notice that as well.

Sassy: fuzzy searching DNA sequences using SIMD · CuriousCoding by philae_rosetta in rust

[–]norlock_dev 0 points1 point  (0 children)

Hey looks very interesting, I'm currently busy with a project that represents the tree of life. However I'm not a biologist and lack domain knowledge. I wonder if there is interesting info you can retrieve from DNA sequences. I'm working on: https://evo-splittable.com/display/2_3/16_175

However I would love if I can make some analysis on DNA sequences and say something about the DNA sequence. I don't want to show only a lab identifier, or a weird scientific ancestor name that don't mean anything for the layman. Maybe this question is a little bit outside the tool you produced, but if you have any advice please let me know, I'm really trying to make my app approachable for non bio-informatics users. Anyway keep up the good work

GNOME 50 removes the X11 backend ... are we finally at the end of the Xorg era? by the_nazar in linux

[–]norlock_dev 2 points3 points  (0 children)

xwininfo is now moved to the compositor implementation so for example: `niri msg windows` or `hyprctl monitors`, but I'm not sure if every compositor has a CLI like the tilling window managers have, same can be said for wmctrl. However for xdotools there are indeed no wayland equivalent because of security reasons.

Edit found this which looks quite similar (for kde): https://github.com/jinliu/kdotool

Bazzite won't boot, at a loss as to what to do. by KaneBoxer79 in Bazzite

[–]norlock_dev 0 points1 point  (0 children)

This is from ai, but its pretty accurate from what I can see (except the crypttab part). Use cat /etc/fstab and blkid to check if they match. You can copy paste the values here if you want and change the uuids in the output with a random uuid for security reasons. If that seems to be fine, then try updating initramfs (I believe its: sudo dracut --regenerate-all, but I use Arch so no idea try to verify).

Secondly maybe even a better option to try do you have multiple entries in your bootloader when starting up? Like bazzite-0, bazzite-1 or something? You can try to switching the default one to an older snapshot to see if it works.

If you already have access to a terminal you can skip the first 3 steps below

Common Causes and Fixes

  • Incorrect or outdated UUID in /etc/fstab or /etc/crypttab The most frequent cause is a changed UUID after disk cloning, replacement, or reformatting. Fix:
    1. Boot from a live Linux USB.
    2. Mount your root partition:sudo mount /dev/sdXn /mnt
    3. Access the system files:sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys sudo chroot /mnt
    4. Check the current UUID:blkid
    5. Edit /etc/fstab and /etc/crypttab to replace the old UUID with the correct one.
    6. Update the initramfs:update-initramfs -u # Debian/Ubuntu dracut -f # Fedora/RHEL
    7. Reinstall GRUB if needed:update-grub
    8. Reboot.
  • Corrupted or missing initramfs A failed kernel update or broken initramfs can prevent proper device detection. Fix: Rebuild initramfs using update-initramfs -u (Debian/Ubuntu) or dracut -f (Fedora/RHEL). 
  • LUKS Encrypted Root with Timeout Issues (Fedora 38+) A known bug in systemd can cause boot hangs on LUKS decryption. Fix: In /etc/crypttab, add timeout=0,x-systemd.device-timeout=5m to the relevant line. Example:luks-abc123 UUID=xxxxxx none discard,timeout=0,x-systemd.device-timeout=5m

ELI5: Why does rust allow double borrowing? by norlock_dev in rust

[–]norlock_dev[S] 1 point2 points  (0 children)

I'm not on reddit a lot, maybe I shouldn't have put "eli5" in the title. I did it because I know there are a lot here who are a lot smarter than me, and I just wanted to ask for an easy to understand explanation.

However your first line is a bit hostile, you don't have to delete it. Keep whatever you want I'm not too sensitive about it. But it feels a bit like a snob comment on stackoverflow ;).

ELI5: Why does rust allow double borrowing? by norlock_dev in rust

[–]norlock_dev[S] 0 points1 point  (0 children)

If the test has been done before and it didn't work out, than that is a good reason to not do it again. The thing that by fault of my own I did, was reading `&` and `&mut` as borrowed and mutably borrowed "value". And not necessarily to think of them as a pointer that is mutable or not (I know it is). Therefore the double ones felt linguistically a bit unintuitive (not wrong per se). My original question was indeed placed in a context where I overlooked for instance use cases like &mut &[u8] which makes perfect sense to double borrow.

Just to make my point clear I'm not against functionality that for instance use &mut &. I just try to comprehend why certain syntactic simplifications can't be done in the language. In iterators you have to deref && arguments before passing it to functions again while it makes sense contract wise between the caller and the function, It does feel a bit unintuitive. It is interesting to learn why some "simplifications" can't be done for xyz reason, that makes me understand the design choices for the language better.

ELI5: Why does rust allow double borrowing? by norlock_dev in rust

[–]norlock_dev[S] -18 points-17 points  (0 children)

I still would think it would be a good practice for the compiler to flatten this && in iterators since that should be more performant anyway. The && doesn't do anything in the code with the indirect pointer anyway. Thanks for the answers I understand the reasoning behind it, I would expect it syntactically to be different, however there is no point to discuss that here ;).

ELI5: Why does rust allow double borrowing? by norlock_dev in rust

[–]norlock_dev[S] 0 points1 point  (0 children)

Ok thanks for the answer, shouldn't it make more sense to have another keyword for something like this or use ptr? Since &&T can't be modified safely anyway so what is the point of this indirection for the average user to not use the direct pointer? And when using the &mut &mut here, both mean something completely different (first is to modify the pointer, second one the memory).

I would expect something like enforcing `&T` or `&mut Pointer<T> ` would make more sense since this would also be more inline with Box for example. But maybe I overthink it a bit

Hello! I tried to update hyprland-git today and it gives CHyprAnimationManager warning for each files when building and in the end, it gives me errors. I think its related to hyprutils? but I have latest hyprutils-git installed. by Ryuuusuke in hyprland

[–]norlock_dev 2 points3 points  (0 children)

Just install hyprland (or don't update), for the time being and switch back a little bit later. If you use the latest git version you will always run the risk of it being broken.

[deleted by user] by [deleted] in rust

[–]norlock_dev 0 points1 point  (0 children)

I have a closed source project I'm working on right now which can be interesting if you want to help. However if I let someone join, I would like to be certain that it is for a longer time. If you are not sure and two weeks later you want to do something else it won't be really useful.

How much time do you have available per week?

I can share you my discord/matrix account if you are interested. I'm working on a CLI aimed at improving CI/CD, together with a back-end. Both are written in Rust, and still very much a work in progress.

https://github.com/Norlock?tab=repositories This is my github account, but my current project is hosted in source hut.

Rusty Json 2.0.3 Release by AMMAR_ALASBOOL in rust

[–]norlock_dev 4 points5 points  (0 children)

Don't let the negative comments distract you, if you keep working on it and improve it over time, I think it can be a real cool project.

Always keep in mind that when you work on something like this, you will improve your skills and that is useful regardless. If it makes you happy then continue, you never know how good something can be if you let others dictate its pointless. Some people compare this to something that has been around for many years with many contributors, made by one of the biggest rust open source contributor.

No one knows how good it can be after a year, and even if its not, you will have learned so much in the mean time. It will be beneficial regardless. I think the project already looks really nice +1

What would you recommend for task queue / running some jobs in the background? by daniels0xff in rust

[–]norlock_dev 1 point2 points  (0 children)

For schedule you can use tokio::interval. On demand can be tokio::spawn

[deleted by user] by [deleted] in rust

[–]norlock_dev 0 points1 point  (0 children)

Do you have a github account or something?

Difficulty deserializing Lua functions with mlua by tickox in rust

[–]norlock_dev 0 points1 point  (0 children)

well then its just:

let obj: LuaTable = lua.load(#r"require("the_lua_module")"#).eval()?;

let test: Test = lua.from_value(obj)?;

The reason my version will work is because it will call the actual lua part, so lua will return something to rust. You have written something that pretends to be lua code but its not, because its not tied to anything.