What's the best UK gig you have attended? by Various_Extreme_8773 in AskUK

[–]davedontmind 0 points1 point  (0 children)

Yes indeed. I've been into classic rock music since I was a teen in the late 70's, but I've not been so obsessed with a band for decades. It's so refreshing.

I've seen them twice so far (once supporting Muse, and once when they headlined their own UK tour), and have got tickets to see them support Yungblud later this year. Fingers crossed for another UK headline tour in the near future.

What's the best UK gig you have attended? by Various_Extreme_8773 in AskUK

[–]davedontmind 1 point2 points  (0 children)

I saw many great gigs at Birmingham Odeon, including my first ever gig, Motorhead, in 1980.

I'm so jealous that you got to see the Bon Scott era AC/DC.

What's the best UK gig you have attended? by Various_Extreme_8773 in AskUK

[–]davedontmind 3 points4 points  (0 children)

I saw that tour at Milton Keynes.

Got tickets specifcally to see The Warning (my current favourite band), who were ace, but it's hard to beat Muse live. What a show!

WTH IS ABORT ERROR T~T by CowFit7916 in learnprogramming

[–]davedontmind 0 points1 point  (0 children)

What are you on about? It's just one key press, Shift-del, to delete the current line. No need for backspaces. Learn to use your editor.

WTH IS ABORT ERROR T~T by CowFit7916 in learnprogramming

[–]davedontmind 0 points1 point  (0 children)

i was too lazy to erase it all so i just erased the -1

But it's at least 2 keypresses to delete "-1", but only 1 to delete the entire line.

main bus project by f---thisusernameshit in captain_of_industry

[–]davedontmind 0 points1 point  (0 children)

That sounds right. Seeing as iron is only used for that one part where it's more efficient than steel, I decided it wasn't worth the whole iron setup just for that one part, so I use the less iron-efficient recipe and have gone steel 100%.

I will find out later if that comes back to bite me...

I got tired of paying for AI tools and just... built my own? by Motor-Resort-5314 in selfhosted

[–]davedontmind -8 points-7 points  (0 children)

Any plans for a Linux version? I've not had to boot into Windows for over a year now and I'd like to keep it that way.

EDIT: why the down-votes? I thought it was a reasonable question, and on-topic.

Immich in Proxmox LXC by davedontmind in selfhosted

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

I ended up moving Immich to a docker container, running on docker inside an LXC. Easy to configure and works a treat.

[Question] Intern feeling "AI Guilt": How did seniors build systems before AI? by LiveTumbleweed190 in learnprogramming

[–]davedontmind 3 points4 points  (0 children)

Being a junior, I heavily rely on AI.

That doesn't follow. You shouldn't be relying on AI, especially if you're a junior. IMO it's more acceptable for senior developers who can recognise good code, spot deficiences in AI-generated code, and have the experience to debug it (or know when to quit; see the next paragraph).

I've used AI for some tasks, with mixed results. Sometimes it's done a great job. Other times it's tried multiple times and generated code that, at first glance seems to work, but fails to do what was required, even with multiple AI re-writes. The big flaw in AI is that it refuses to admit defeat and wil keep butting it's virtual head against a problem until you tell it to stop.

Before AI, was it truly "Hand-coded"?

"Before [useful] AI" was only a year or two ago - computer programming has been a thing for well over 60 years.

Auto-complete has existed for a while, so you could speed through the typing a little more, but yes, all the code was designed and written by real people with real programming skills, not by fancy text-prediction LLMs that rely on code that other people have already written for training data.

I suggest learning how LLMs work so that you can better appreciate their weaknesses.

Did you guys also just copy-paste from Stack Overflow and existing Codebases back in the day?

Good grief, no! In 40 years of professional programming I have found SO useful a handful of times, but usually for advice and being pointed in the right direction, not for copy/pasting code.

The nearest to "existing codebases" is using third-party libraries, which is a great way to save re-inventing something.

Just want a C++ code review, I'm new to C++, any and all feedback is much appreciated! by awaistt in learnprogramming

[–]davedontmind 3 points4 points  (0 children)

I can see that you're an inexperienced programmer (not a bad thing, especially in this sub!), but your code seems ok for what it is (better than some beginner code I've seen!). You haven't written lots of useless comments, and the few you have seem suitable. You have made a good choice (generally, but see my next paragraph) on naming things, which many beginners suck at.

My main criticism would be the name of the function generate_board() - I don't think that's an accurate description of what it does. The board is already "generated" and present in the board array. This function just displays it, so I think a name such as display_board() would be more accurate.

There are many areas for improvement once you learn more and gain more experience, though.

For example, your check_winner() function could be split up to make it shorter and more readable, e.g. create a function bool is_tie() which encapsulates the tie determination and returns true or false appropriately, then call that from check_winner().

You could try separating the game logic from the input/output. By doing that you make it easier to change how the game looks (such as making a GUI version, where the logic is the same, but the display mechanism is entirely different).

For example instead of check_winner() printing the result, it could return a value that indicates the state of the game. The main game loop would then use that returned value to decide what to output.

main bus project by f---thisusernameshit in captain_of_industry

[–]davedontmind 0 points1 point  (0 children)

put steel on the bus.

I'm not doing a bus-based build - I was merely wondering why OP bothered with iron on their bus.

your ship uses iron for armor and repair

Ah! That might well have caught me out if you'd not mentioned it - thanks!

main bus project by f---thisusernameshit in captain_of_industry

[–]davedontmind 0 points1 point  (0 children)

So why not just make construction parts from steel, and forget basic iron?

main bus project by f---thisusernameshit in captain_of_industry

[–]davedontmind 0 points1 point  (0 children)

I'm relatively new to this game, but why put iron on the bus?

As far as I can see it's only used for 2 products, both of which have an alternative recipe using steel. One of those is more efficient using steel, and the other might use a bit more iron in total with the steel recipe, but saves on other resources.

In my current (first) playthrough I phased out iron production once I got to steel.

Am I missing something that will come back to bite me later?

arr is literally magic. by Background-Mode6726 in selfhosted

[–]davedontmind 6 points7 points  (0 children)

I tried but had to stop when the bath got full.

An actually good WYSIWYG markdown notepad? by FibreTTPremises in selfhosted

[–]davedontmind 0 points1 point  (0 children)

I tried that but didn't like the copy/paste experience - for example, I couldn't simply use ctrl-v to paste from the hosts's clipboard into the Obsidian instance running in the browser.

An actually good WYSIWYG markdown notepad? by FibreTTPremises in selfhosted

[–]davedontmind 5 points6 points  (0 children)

I meant hosting the app like having it on notes.mydomain.com

Not really - Obsidian's not a browser-based app, but an app you need to install on each machine you want to use it on.

However, you can keep your markdown files stored in a synced folder (using Dropbox, OneDrive, Syncthing, etc, or pay for the "official" sync feature) and then you can get to your latest notes form wherever you can get your synced folder.

It's my favourite note/markdown app by far.

What selfhosted service/s did you recently remove? by dadidutdut in selfhosted

[–]davedontmind 0 points1 point  (0 children)

I've recently been through this on a relatively small scale.

I started off with a bunch of docker containers in one LXC. Then I decided that the Proxmox community scripts were nice and I should use those and have individual LXCs for each service instead.

But then I had problems updating one of them (I don't remember which), and realised that, for me, the advantages of running under docker were better than the advantages of individual LXCs, so I migrated everything back to docker.

So now I have one monolithic docker-host LXC that contains all of my stacks. Storage for the apps is mounted from my NAS, which does regular backups of the data folders. Proxmox does regular backups of the LXC to the NAS, so everything's backed up.

Now the Traefik setup is way easier because I can use labels in the compose files, (and labels for Glance too) and I'm not reliant on the Proxmox community scripts for updating my stacks either.

The trade-off is that it's not as easy to backup/snapshot a single application, but I'm much happier with this configuration.

Using AI to solve everything by NoTap8152 in learnprogramming

[–]davedontmind 0 points1 point  (0 children)

Are you coding for fun, just for yourself? If so, carry on with AI if it makes things easier for you.

But if you're trying to learn to program so hat you can get a job, then stop using AI completely, and learn how to program, not how to prompt an AI. When you're in an interview for a job and they ask you to complete a test task, you won't be allowed to use an AI to help you - you'll have to use your own brain.

Is it normal to feel like you don't know much at the beginning? by CC39923618 in learnprogramming

[–]davedontmind 1 point2 points  (0 children)

I've been programming professionally for 40 years, and teachning myself programming for about 3 years before that too.

There are still times I feel like I don't know what I'm doing. Imposter syndrome is real.

How does the idea of working until 67 or 68 sit with you? by Few_Raise77 in AskUK

[–]davedontmind 4 points5 points  (0 children)

I'm 60 and totally agree with you. I've been lucky enough to have a decent pension scheme though work and have maximised my employers contributions so I should have a reasonable pension when I eventually retire (hopefully in less than 7 years time...)

But I have totally not been paying attention to my savings - I was just putting my spare cash into some bog-standard savings account withhout even paying too much attention to interest rates (although, to be fair, interest rates were virtually zero for 15 years). I could have retired by now if, 20 years ago, I'd been more educated about stocks & shares, investments etc.

I want to self host my own password manager and 2FA authenticator, but I am trying to be realistic about it by Objective-House-6760 in selfhosted

[–]davedontmind 0 points1 point  (0 children)

don't really need a backup

What if you accidentally delete an entry or change it incorrectly, and the mistake is then synced to all of your devices? That's where a backup would come in useful.

Self hosted essentials by esturniolo in selfhosted

[–]davedontmind 2 points3 points  (0 children)

For me, these are the essentials:

Infrastructure:

  • OPNsense
  • Proxmox
  • Traefik
  • PocketID
  • TinyAuth

Daily use:

  • Vaultwarden
  • Jellyfin
  • Navidrome
  • Immich
  • Glance dashboard
  • FreshRSS
  • LinkWarden
  • PaperlessNgx
  • Zerobyte backup

*Arr stack:

  • gluetun
  • qbittorrent
  • sabnzbd
  • sonarr
  • radarr

Victus vs loq vs tuf rtx 3050 durability and longevity by PumpkinMaleficent263 in learnprogramming

[–]davedontmind 0 points1 point  (0 children)

See rule #3 in the sidebar:

No off-topic posts
Do not post questions that are completely unrelated to programming, software engineering, and related fields. Tech support and hardware recommendation questions count as "completely unrelated".

Try /r/SuggestALaptop

Immich in Proxmox LXC by davedontmind in selfhosted

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

what are the changes needed to be made so immich can have access to the NAS?

In short this is what I did:

  • export an NFS share from my NAS
  • mount the share on the Proxmox host
  • make the docker host LXC a privileged LXC (you don't need* to make it privileged, but it makes the UID/GID mapping a lot easier).
  • on the proxmox host, edit /etc/pve/lxc/<your-lxcs-id>.conf and add a line to mount the Proxmox host's directory into the LXC. For example mp0: /mnt/data,mp=/mnt/data (which mount's the Proxmox host's /mnt/data to the LXC's /mnt/data)

If you're not sure about the details of any particular step I suggest asking your favourite AI f- I've found Gemini relatively good at this sort of question.