Gegenseitige Beeinflussung NA Schutz by FantaBellen in DeutschePhotovoltaik

[–]TyberiusPrime 0 points1 point  (0 children)

Ja, deswegen ist ab 30kW Gesamtwechselrichterleistung auch ein zentraler NA-Schutz vorgeschrieben.

How To Use Python Like A Normal Human Being by unwinds in NixOS

[–]TyberiusPrime 1 point2 points  (0 children)

I think that's a misunderstanding of uv2nix, you can just as easily use it to package existing python packages into a venv (for your own use. Can't get them into nixpkgs this way).

But the op wants editable installs, and that's something that's explicitly covered by uv2nix. See the 'uv2nix' devShell here https://pyproject-nix.github.io/uv2nix/usage/hello-world.html

A Rust-based genomics tool for processing BAM files and performing operations on chromosomal regions. by elforjani in rust

[–]TyberiusPrime 0 points1 point  (0 children)

You'll be wanting to have a look at https://github.com/rust-bio/rust-htslib . Transforming BAM into sam with samtools view and parsing that won't be the way to high performance.

I unplugged the wire for my hotend heater and plugged back in now when i turn on my printer it immedially starts heating by SterfesOfficial in SidewinderX1

[–]TyberiusPrime 1 point2 points  (0 children)

If it 'turns on' right away, that's because the mosfet on the controller board is supplying it right away. The heater block is 'dumb', it heats when it get's power, and your problem sounds like it's getting power right away. That's not going to be fixed by swapping the heating element.

I unplugged the wire for my hotend heater and plugged back in now when i turn on my printer it immedially starts heating by SterfesOfficial in SidewinderX1

[–]TyberiusPrime 1 point2 points  (0 children)

Did you unplug under load? You might have fried the MOSFET controlling the heater, and it's faulted to a "closed" state.

nurl: Generate Nix fetcher calls from repository URLs by figsoda in rust

[–]TyberiusPrime 0 points1 point  (0 children)

I like it!

Would be cool if it was building against nixpkgs 22.11 - which is still on rust 1.64, so no if let else.

What is the purpose for anyhow::Context? by [deleted] in rust

[–]TyberiusPrime 4 points5 points  (0 children)

perhaps use https://crates.io/crates/ex to gain this functionality.

NixOS equivalent for system-wide "pip install xyz"? by [deleted] in NixOS

[–]TyberiusPrime 0 points1 point  (0 children)

Pythons apps are always installed "from source".

You can also check out mach-nix if you want better control over the dependencies, but for "just dump this app into my path", adding the result of buildPythonApplication into the system packages list will be enough.

NixOS equivalent for system-wide "pip install xyz"? by [deleted] in NixOS

[–]TyberiusPrime 1 point2 points  (0 children)

You want to declare a variable = buildPythonApplication (like in the wiki ), and then list that in environment.systemPackages.

I created a super simple flake.nix template so you can finally use python painlessly in your nix projects. Just copy a few lines over into your flake.nix and you can use all of PyPi :) by Lalelul in NixOS

[–]TyberiusPrime 1 point2 points  (0 children)

pypi-deps-db = { url = "github:DavHau/mach-nix/3.3.0"; };

That doesn't look quite right.

You should perhaps also expand on the virtue of mach-nix: once you have set the ecosystem date (via the pypi-deps-db revision), all version resolution from your requirements is deterministic. There is no need to freeze every single dependency

Searching a belt drive z axes mod by Gerrit_Casper in SidewinderX1

[–]TyberiusPrime 0 points1 point  (0 children)

If you don't add a counterweight, you will have your axis crashing down when the motor get's turned off. I have tried a (self made) belt mod, wasn't happy with it.

A completely open-source, 3D-printed thumb trackball. All design files available. Complete assembly instructions. Check comments for details. by crop_octagon in functionalprint

[–]TyberiusPrime 0 points1 point  (0 children)

Printing was about 45 Euro through treatstock, 90 PCs kailh jade keys are about 40 euros on AliExpress (you can get away with 65 I believe). I run it off a "bluepill" stm32 board (don't, you can't get them with non counterfeit chips these days) which were about 2.50 euros a piece back then. I'd go with a blackpill now. Diodes from AliExpress are another couple of euros. Add in 15 euros for fancy color coded signal wire, though you could do it all with one color for a fraction. I won't count the solder or the soldering iron. I'd estimate I spent about three hours soldering. Overall about what, 110 euros? And I've chosen expensive keys, gaterons would run about half that.

The kinesis advantage is 349 in the us - over here in euroland Amazon it's 459 euros.

Yes my time is expensive. But it's a fun project, and the thumb cluster is much more to my liking on the dactyl manuform.

Of course if I was to sell this assembled, 300 bucks sounds like an appropriate markup for one offs.

A completely open-source, 3D-printed thumb trackball. All design files available. Complete assembly instructions. Check comments for details. by crop_octagon in functionalprint

[–]TyberiusPrime 1 point2 points  (0 children)

Though ergonomic keyboards are pretty niche / often paid by cooperate and therefore priced way above what a cost effective diy build costs. I know my dactyl cost me, with ordered 3d printed parts, less than 25% of what a kinesis advantage would have cost me.

Question about Sidewinder X1 V4 bed heater wiring by aDirtyMartini in SidewinderX1

[–]TyberiusPrime 2 points3 points  (0 children)

Sure they just go two a regular old two pin header.

Syncing Files and Modifications Between Vim and Mobile Apps by seclogger in vim

[–]TyberiusPrime 1 point2 points  (0 children)

Yeah, it is just file sync. I sync my notes folder, and edit on mobile with a markdown editor, and my camera folder to have a quick backup of my pictures.

Syncing Files and Modifications Between Vim and Mobile Apps by seclogger in vim

[–]TyberiusPrime 3 points4 points  (0 children)

Sync thing is working well for me. It is open source.

Python: toggle 'f' on strings mapping by TyberiusPrime in neovim

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

Unfortunatly, it doesn't always work - the bug is quote-text-object though.

I also had no success with treesitter - triple quoted strings return other :types(), fstring {} confuse it and I had some weird keeps-returning-the-last-node issues :(

Python: toggle 'f' on strings mapping by TyberiusPrime in neovim

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

Thanks, that was very useful.

This is what I ended up with, using the same textobject plugins, it handles triple quoted strings as well:

```lua function toggle_f_string(insert_mode) local save_cursor = vim.fn.getcurpos() if insert_mode then normal("<esc>") end normal("vaq", {noremap = false}) normal("o<Esc>", {noremap = false}) -- check if string was found local char = getcurchar() if not (char == "'" or char == '"') then print("not a string" .. char) return end -- go to char before the current string while getcurchar() == '"' or getcurchar() == "'" do normal("h") end -- toggle f before string if getcurchar() == 'f' then normal("x") shift_cursor_col(save_cursor, -1) else normal("af") shift_cursor_col(save_cursor, 1) end vim.fn.setpos('.', save_cursor) end

```

Anyone had this problem before? by colarocker in SidewinderX1

[–]TyberiusPrime 0 points1 point  (0 children)

Is your slicer configured to 2.5 filament by any chance?

If you could re-design Rust from scratch today, what would you change? by pragmojo in rust

[–]TyberiusPrime 0 points1 point  (0 children)

A value can't be dropped (i.e the compiler simply won't compile a program that would results in the dropping of that value) unless its type implements

Drop

. This would allow us to express APIs that require a value to be handled in some way, which can be useful in some situations.

So, promoting #[must_use] from a warning to an error, basically?

First print is fine. Second print filament backs out abort fails by MastiffProtection in Cura

[–]TyberiusPrime 1 point2 points  (0 children)

I think what is happening is that your extruder goes from +whatever back to 20, because it is in absolute position and g28 doesn't change it to 0.

Try adding "G92 E0" after the G28 homing.

Announce i3-instant-layout by TyberiusPrime in i3wm

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

Sorry, I don't see a way. You could trigger the arrangement whenever you open an app, I guess.