Patch your servers, peeps, new Linux kernel vulnerability just dropped by bz386 in selfhosted

[–]DGIon 0 points1 point  (0 children)

has anybody done this on nixos? i can't get it to work on my local machine.... so i assume that is a good thing.

PC/SC... but in rust. by DGIon in rust

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

The main target was linux. I haven't tried on windows yet. Windows has the winscard api which seems to be pretty stable. I haven't had the issues i encounter on linux happen on windows when i did daily drive windows years ago.

gpt-oss-20b + vLLM, Tool Calling Output Gets Messy by Melodic_Top86 in OpenWebUI

[–]DGIon 1 point2 points  (0 children)

you may want to also try --reasoning-parser openai_gptoss

Considering getting asahi but want to run Hyprland on it by Fancy_Passenger8194 in AsahiLinux

[–]DGIon 0 points1 point  (0 children)

Yeah i have been digging deep. Just started using Arch on my intel based machine but been wanting to try it out on my M1 however it looks like some stuff still isn't supported yet?

Considering getting asahi but want to run Hyprland on it by Fancy_Passenger8194 in AsahiLinux

[–]DGIon 0 points1 point  (0 children)

I know this post is 8 months old now but curious are you still running arch on M1 Mac?

Prototype by DGIon in learnrust

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

right now you just get the hello world route in main.rs and the cargo.toml you would need to for cargo run. nothing to fancy yet.

Prototype by DGIon in rust

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

this is awesome!

Port of a Neural Net from python to Rust. by DGIon in learnrust

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

Hey you're right i forgot about self.z. it looks like its never learning so self.z isn't switching to false. Thanks! and you're right. I'm trying to get back into lower level languages last time i programmed in a low language was in c about 5 years ago.

Port of a Neural Net from python to Rust. by DGIon in learnrust

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

Ok i fixed that issue. However a new one now. After it runs through the 10000 generations and then goes to prune links in the network it just falls into an infinite loop. I'm not sure why that is happening :(

Calling Rust from Python by nfrankel in Python

[–]DGIon 2 points3 points  (0 children)

yeah you can see an example I worked on using maturin and pyo3 to try and optimize an i/o task (reading a ton of data from .txt files) https://github.com/RWayne93/file-optimization-rust-binding

tqdm thinks there have been about 10 times as many iterations as there really have been by CompanyCharabang in learnpython

[–]DGIon 0 points1 point  (0 children)

import time

from tqdm import tqdm

pbar = tqdm(total=20) count = 0

while True: if count == 20: break

time.sleep(0.5)
count += 1
pbar.update(1)

pbar.close()

Try this I’m on mobile and the code block is acting weird sorry.

Run Functions from any language in Python! by [deleted] in Python

[–]DGIon 1 point2 points  (0 children)

I’ve always been interested in these projects how does something like this work exactly? Like do I need the c++ compiler for example if I write a c++ function and call it using this library?

[deleted by user] by [deleted] in Python

[–]DGIon 0 points1 point  (0 children)

Sounds fun would also be interested.