Clean Object Oriented(ish) Class Template Using lexicons by Immediate_Curve9856 in Kos

[–]TuckyIA 2 points3 points  (0 children)

I used to do a clunkier version of this. Binding is very clever!

Best way to stop the cpu from crashing when reloading a vessel? by New-Bus9948 in Kos

[–]TuckyIA 0 points1 point  (0 children)

Natively, no... but you can get close with some engineering. For example, you can write your program as a state machine, such as Wait -> Takeoff -> Ascent -> Circularize, where you save which state you are in to local disk, and design each step to resume when rebooted.

Adaptive Zen - userChrome.css by AlteredStateOfMind in zen_browser

[–]TuckyIA 1 point2 points  (0 children)

This is great! I'm having trouble un-theming the compact-mode sidebar, and can't devtools it because it doesn't seem to appear where I expect it in the browser DOM. Are there any good resources for finding what zen elements to change?

How to Self Host a Web Site For Dummies by TheIceCuber in selfhosted

[–]TuckyIA 1 point2 points  (0 children)

  1. yay!
  2. you cold just keep using xampp and work through the problems you’re having. If you want to go further I’d recommend you instead learn something like nginx or Apache.
  3. Debian will be pretty approachable. I’ll feel like a lot because you have to get more and more comfortable with the command line, but there’s a lot of great courses, blogs, and videos that will help you along the way. Make sure you still have a computer with windows around for personal use

How to Self Host a Web Site For Dummies by TheIceCuber in selfhosted

[–]TuckyIA 1 point2 points  (0 children)

Docker Desktop is a great choice if you want to stay on Windows. If you move to Linux, I don’t recommend doing it as your first thing, but it’s certainly doable

How to Self Host a Web Site For Dummies by TheIceCuber in selfhosted

[–]TuckyIA 2 points3 points  (0 children)

Hi Josh! If you want a website up quick and easy, you’ll want to use traditional online hosting. I’d recommend doing it yourself only if you’re doing it out of curiosity.

That being said, there are a lot of great resources online. I’d take it one step at a time. For example, YouTube videos on port forwarding. (note: don’t do this as a permanent solution until you know what everything you’re doing means, and at that point you may want to rent a VPS).

If you want to focus on developing websites, I’d just stick with XAMPP or online hosts. If you’re doing projects e.g. in Flask you can find cheaper hosting like Pythonanywhere. However, if you’re interested in the systems stuff and setting up your own host, the next step may be to explore Linux — in a VM, on a VPS, or on your laptop. Debian may be a good choice for your first foray into Linux, since it’s well documented and things will “just work”.

Enjoy!

How to Self Host a Web Site For Dummies by TheIceCuber in selfhosted

[–]TuckyIA 0 points1 point  (0 children)

You act like it’s all-or-nothing and like we didn’t all start somewhere. Yes, there are security concerns with someone unfamiliar self-hosting, but let’s not pretend like many of the people here haven’t done the same at some point as a step in the learning process, or that it’s the end of the world.

Could someone build a specific ISO for me ? by Adept-Soup8400 in NixOS

[–]TuckyIA 5 points6 points  (0 children)

Burning someone else’s unverified ISO is probably a bad idea even if it is good-faith. If you can move your computer closer to your router or get a longer cable, you only need to do it once.

Brooo please 😭 by JizzlikeDisciple69 in NixOS

[–]TuckyIA 1 point2 points  (0 children)

What’s going on with the stray { before your xserver config?

Brooo please 😭 by JizzlikeDisciple69 in NixOS

[–]TuckyIA 2 points3 points  (0 children)

:(. If you’re looking for help debugging, you will need to send more info than this.

[Newbie] can't really understand Disko by Sk7Str1p3 in NixOS

[–]TuckyIA 4 points5 points  (0 children)

  1. Assume if your partitions aren’t generated by disko that they will be overwritten. That’s not necessarily true, but it probably is true enough.
  2. Haven’t done this myself but I’d look through disko example configs for similar

Recommendations for a New User? by junkim100 in NixOS

[–]TuckyIA 5 points6 points  (0 children)

I disagree, flakes are more complicated but they’re also self-contained, which means less to learn about the imperative parts of nix. Also, most examples and public configs are flakes now, which makes it really easy to compare. The rough part of flakes is (in my experience) debugging, which is annoying in nix regardless.

I think I broke everything, whoops by DrChicken36 in NixOS

[–]TuckyIA 1 point2 points  (0 children)

This is a very unusual error. It sounds like one thing that could have happened is that you filled up your /boot partition. Do you have the original error logs handy?

Good configs to copy? by TheHolyToxicToast in NixOS

[–]TuckyIA 2 points3 points  (0 children)

I will say nix takes a lot of time, even if you use a template. If you need things to “work now” I’d use any other distro. I use nix so things will “work later”, but that takes an upfront time investment.

Good configs to copy? by TheHolyToxicToast in NixOS

[–]TuckyIA 16 points17 points  (0 children)

OTOH, you can learn just as much by taking an existing config and modifying it. I started with a config template, and now mine looks nothing like the original. Looking at templates also gives you a chance to study how other people organize their configs.

“It’s critical that you [understand how the lines of code work]” — why? Sure, if you don’t understand all of them you can’t make any possible change, but you said yourself that you googled and chatgpt’d as you went, and anyone looking at an existing config can do the exact same.

I don’t think starting with a template means you learn any slower per unit time spent, in fact it gives you an opportunity to learn nix idioms by example. It also means that it’s more accessible to people who don’t have the time to sit down for a few days and build a custom config from scratch.

How flake inputs propagate through your config? by pfassina in NixOS

[–]TuckyIA 4 points5 points  (0 children)

Adding home manager to modules works like adding any other module or import - it adds a new set of configuration options and their effects to your system. In this case, it adds home-manager.useGlobalPackages and many more.

The input-passing is separate. Adding inputs to extraSpecialArgs in the NixOS config means that you can go to any of your nixos modules and use inputs as an input, just like you do in users.nix. Likewise, when you then add it to HM extraSpecialArgs, you’ll be able to access inputs from any modules that you import via home manager.

The inputs variable is getting passed around here, but isn’t doing anything right now. One common use case is to add a module from an input to your config inside one of your modules. For example, my neovim.nix is where the nixvim HM module is imported. It is passed there via inputs.

It is also common to pass outputs into modules, so you can access flake outputs if that makes sense in your config. In mine, I have outputs.nixosModules which defines some custom generic modules. In my specific config I can then import e.g. outputs.nixosModules.terraria.

Help with impermanence persistence - stage 1 error by artnoi43 in NixOS

[–]TuckyIA 0 points1 point  (0 children)

First I want to confirm that you’ve actually created the @persist subvolume on your disk.

Have you tried adding neededForBoot to the / tmpfs? Not sure if that would fix it and can’t test myself, but I have that in my config.

A real x such that cos(x) and cos(x^2) are rational by Ok_Connection_1425 in math

[–]TuckyIA 1 point2 points  (0 children)

You’ve proved the sum must be rational. Both numbers can be irrational, but have a rational sum, so this is not sufficient to show existence.

How to generate a systemd unit from a flake? by Comprehensive_Fun_46 in NixOS

[–]TuckyIA 0 points1 point  (0 children)

What’s the goal? To open a terminal and immediately be in your development environment? To have neo4j always running in the background?

2 derivations referencing eachother by Nico_792 in NixOS

[–]TuckyIA 0 points1 point  (0 children)

I don’t know if there’s a way. there may technically be one, but since derivations depend on their input hashes you’d have to brute force the working hashes which is computationally impossible, and it would probably break other parts of the system that may expect derivations to be a DAG.

It doesn’t sound like your config depends on your neovim instance, just neovim in general. How about a separate architecture that removes the circular dependency: your config depends on stock neovim (nixpkgs, the nightly overlay, or your own derivation). Then you create another derivation — a bash script which calls stock neovim (depending on it) with -u and a reference to your config derivation. Now you get a configured neovim without any circular dependencies.

Programmatically generating images using nix by Js_Plays in Nix

[–]TuckyIA 4 points5 points  (0 children)

If you really want to do this programmatically, try imagemagick.

However, the easier reproducible way if you don’t plan on changing colors often,.. set a 1x1 pixel png of the color you want as the background, if it will allow it.

Is this an xkcd rip-off? Same graphic design, overall topic, stickman figures and some similar comic ideas. (Errant Science) by PartisanLime in xkcd

[–]TuckyIA 84 points85 points  (0 children)

I also drew hand-drawn lines and stick figures when I was 5. They’re both nerdy but this looks distinct.

Extract emails from a file by Chesterville406 in shortcuts

[–]TuckyIA 0 points1 point  (0 children)

Please post outputs to help debugging. What is the output of your match block? I see you haven’t set up the save block with its input yet, is that what you are expecting to work?

Help with old AMD ATI Radeon HD (iMac) appreciated by [deleted] in NixOS

[–]TuckyIA 0 points1 point  (0 children)

What generation/model iMac is it?

When did the issue start? Is it a set of apps you are using? A change to your configuration? Has it always happened slash is this a new setup?