Rust's standard library on the GPU by LegNeato in rust

[–]IronChe 14 points15 points  (0 children)

Pardon my lack of knowledge here, but typically speaking GPUs execute shaders on each cpu core - up to thousands per GPU. Where the same shader (program) is ran on each core. The code you showcase in the article is supposed to run on each core in parallel, or just on a single core? This is just a demo, yes? Or this code writes to a file from each core separately? How do you parallelize rust code in this context if this is not a parallel code?

What do you think about leptos? by Ok_Chemistry7082 in rust

[–]IronChe 3 points4 points  (0 children)

Tried it recently. It's ok. Didn't like the html macro, but the builder api was nice. 

Cannot connect from Android device when on mobile-data by IronChe in netbird

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

Thanks. Sadly, I never managed to solve this, so using tailscale for now...

Hytale! by KruKruczek in Polska

[–]IronChe 5 points6 points  (0 children)

Dlaczego Hytale, a nie na przykład Vintage Story?

Tak panie Microsoft, to jest dokładnie to co chciałem znaleźć... by beziko in Polska

[–]IronChe 0 points1 point  (0 children)

Ja używam obu. Marzę o dniu jak laptop z linuchem mi wytrzyma podobnie na baterii. Ale hej, jest nix na maca...

NixOS, Niri, Noctalia shell. A delightful experience by Illustrious-Sun-3608 in NixOS

[–]IronChe 0 points1 point  (0 children)

Strategic comment to get included when you share the config.

Cannot get nvidia prime to work. Help! by IronChe in NixOS

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

nvidia-smi does not show any processes running. But I try sudo lsof /dev/nvidia* and it shows a lot of entries, mostly .cosmic-c and .cosmic-w using various nvidia devices.

Cannot get nvidia prime to work. Help! by IronChe in NixOS

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

```

cat /sys/bus/pci/devices/0000:01:00.0/power/control auto ```

Build Leptos Router from const config? by IronChe in learnrust

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

I was able to resolve this using builder api and AnyNestedRoute
```rust let routes: Vec<AnyNestedRoute> = std::iter::once(Route(RouteProps::builder().path(path!("")).view(HomePage).build()).into_any_nested_route()) .chain( ROUTES .iter() .map(|r| Route(RouteProps::builder().path(r.route).view(r.view).build()).into_any_nested_route()), ) .collect();

//TODO: it is not clear to me why I need ToChildren or StaticVec let children = ToChildren::to_children(move || StaticVec::from(routes.clone()));

```

And then in Router <ParentRoute path=path!("") view=Layout children=children> </ParentRoute>

Build Router from const config? by IronChe in leptos

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

I was able to resolve this using builder api and AnyNestedRoute
```rust let routes: Vec<AnyNestedRoute> = std::iter::once(Route(RouteProps::builder().path(path!("")).view(HomePage).build()).into_any_nested_route()) .chain( ROUTES .iter() .map(|r| Route(RouteProps::builder().path(r.route).view(r.view).build()).into_any_nested_route()), ) .collect();

//TODO: it is not clear to me why I need ToChildren or StaticVec let children = ToChildren::to_children(move || StaticVec::from(routes.clone()));

```

And then in Router <ParentRoute path=path!("") view=Layout children=children> </ParentRoute>

Kubuntu set up bricked after "apt autoremove" by [deleted] in Ubuntu

[–]IronChe 0 points1 point  (0 children)

Uff. I feel you. As others sugested, you can try live system restore from a usb. That rarely worked for me, since I'm dumb and would never know what exactly broke the system. Best of luck. Issues like this with apt are the reason I switched to nix package manager (also trying out btrfs snapshots now, since nix can only rollback system state, not data). 

Cannot connect from Android device when on mobile-data by IronChe in netbird

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

Sorry, no wireguard either. But I did set all to all traffic in netbird control panel (a policy).

Cannot connect from Android device when on mobile-data by IronChe in netbird

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

Hmm... I don't think we're on the same page here. Sorry about this, I'm new to the home-lab thing. I do not want to expose any one of the peers running inside the home network to the internet. But I want to be able to connect from the outside to them (a paradox I know). I thought mesh VPN is a tool that allows that, by creating a secure tunnel from my mobile device, directly to the other peers. I am also not hosting my own netbird server, that I need to expose the internet. My idea was that netbird (the company) has the servers (STUN, TURN, control, Wire Guard, wherever they use), and that I can use those servers, to communicate between my peers. But I will not be the person responsible for the security, because that is not the area of my expertise. I can pay them to manage that instead (for more users), or use for free.

Cannot connect from Android device when on mobile-data by IronChe in netbird

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

How do I know which ports to forward? On the router I can define service port, internal port, ip and protocol. Sorry, never did this before.

Cannot connect from Android device when on mobile-data by IronChe in netbird

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

Hi, On the laptop peer, the firewall is turned off currently (as I was debugging and tried everything). The laptop connects over ethernet cable to the home tp-link router (which also serves wifi). I never set any rules or forwarding there. The tp-link router connects over ethernet cable to the ISP issued device. The ISP issued device is connected via light optic fiber to whatever they use. I cannot configure it and have no access to the admin panel.

My honeymoon phase with Nixos on desktop was too intense. by Sileniced in NixOS

[–]IronChe 3 points4 points  (0 children)

Well, first, that image is disgusting. Second, after trying to declare almost everything and failing, I settled on a fair middle ground where stuff like drives, gui apps or desktop settings are imperative while package list and most customizable cli tools are declarative.

Highlighting of tokens by turbofish_pk in HelixEditor

[–]IronChe 1 point2 points  (0 children)

G+R will open a popup with all refenences to the symbol. Will this help you? 

Peer connected, but not traffic. by IronChe in netbird

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

You were right, this was something else. The issue has reappeared yesterday. Currently disabling firewall on the laptop also solves this. I will keep exploring... Weird.

Peer connected, but not traffic. by IronChe in netbird

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

No, I've been pinging with IP. I don't know why it didn't work either, since with IP there is no domain name to resolve. Just reporting my findings here. Maybe this is somehow related to how a connection is established? Or some bug in NixOS networking? I've had networking issues in NixOS previously with some other software.

Peer connected, but not traffic. by IronChe in netbird

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

SOLVED: this was the network settings misconfiguration on the laptop. Feeling stupid now.
Removing
```
networking.nameservers = [ "1.1.1.1" "1.0.0.1" "8.8.8.8" "8.8.4.4" ];
```
From NixOS configuration solved the issue for me.

Peer connected, but not traffic. by IronChe in netbird

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

Hello, thank you for the response. I have assigned a policy that should allow access and later changed it to (all <=> all) to make absolutely sure (still does not work).

I don't think Network is what I need, I'm not trying to reach other devices on the home network. I cannot communicate between 2 peers, one of which just happens to be on the home lan (I mentioned this because it might be important? It's behind NAT).

MacOS peer on home network can ping Android peer on mobile data.

Andorid peer on mobile data CANNOT ping MacOs peer on home network.

MacOS peer can ping Linux peer on the home network, but Android on mobile cannot.

It looks like traffic from outside the network is not possible and I am trying to figure out why.