[-] Lodra@programming.dev 18 points 2 days ago

Ya… being paid to perform isn’t immoral. Honestly, I hope he took a ton of cash from Amazon for the show.

Amazon is the crowd doing evil crap. Their immorality doesn’t automatically spread to everyone they interact with. Especially, people that aren’t actually aiding their efforts. This one is corporate waste

[-] Lodra@programming.dev 2 points 2 days ago

Thank you for pointing this out. It was the first thought that came to my mind.

I have no idea when the last real election was. But it certainly hasn’t been in the last decade or two. Social media is too strong of a platform for propaganda. I think there are exceedingly few people now with an accurate understanding of modern political parties, affiliations, etc.

Plus, there’s waaaay too much money in politics. Votes are bought

[-] Lodra@programming.dev 1 points 3 days ago

For debugging across disparate app, hosts, etc.,x I think the best current option is spans and traces. If you aren’t already familiar, look into general observability, logs/metrics/traces, and definitely opentelemetry!

[-] Lodra@programming.dev 0 points 5 days ago

Unfortunately, I’m not familiar with installing Bitwarden so I can only offer general advice.

Port conflicts happen at runtime, not when software is installed. In general, you should be able to install as much software as you’d like that all relies on port 443 but only run one at a time.

If you’re seeing port conflicts when installing Bitwarden, then I suspect that something is starting the app after the install is done. If this is right, then maybe you can disable the automatic start. Or maybe you can ignore the error at install time, then configure the app, then start it.

[-] Lodra@programming.dev -4 points 2 weeks ago

Open source software literally means that the source code is available to anyone. In GitHub, that just means that your repo is public rather than private. But your method technically doesn’t matter. You could publish to a forum if you wish. That’s still open source!

Free OSS just means that anyone is free to use and modify the source code for any purpose. The details are usually defined in a LICENSE file.

I feel like you’re really asking about the common practices and methods used in FOSS. Right? If so, that’s entirely up to you as the maintainer. As the project matures, you may attract other contributors which will in turn will motivate change to your tools and methods.

Start with what works for you. Model after similar projects if you wish. Adjust as change is needed.

[-] Lodra@programming.dev 3 points 2 weeks ago

I certainly don’t have an answer for you. Sorry 🙂

I’m super curious about your motives and goals though. Why do you want to do this??

[-] Lodra@programming.dev 2 points 2 weeks ago

Lol whoops. You’ve got it right. I fixed up my previous comment

[-] Lodra@programming.dev 2 points 2 weeks ago* (last edited 2 weeks ago)

The video plays for me as well but no sound. I’m using the PWA on iOS.

[-] Lodra@programming.dev 4 points 4 weeks ago

lol got it. Definitely not email then

[-] Lodra@programming.dev 3 points 4 weeks ago

Uh email? It’s not exactly exciting but there are loads of tools available for automating emails. Definitely asynchronous. Does it fit your needs?

[-] Lodra@programming.dev 5 points 4 weeks ago* (last edited 4 weeks ago)

Test coverage is useful to measure simply because it’s a metric. You can set standards. You can codify the number into ci/cd. You can observe if the number goes up or down over time. You can argue if these things are valuable but quantifying test coverage just makes it simpler or possible to discuss testing. As people discuss test coverage and building tests becomes normalized, the topic becomes boring. You’ll only get thoughtful discussions on automated testing when somebody establishes a new method, pattern, etc. After that, most tests are very simple. That’s often the point.

Even “testing on autopilot” has high value.

You can build lots of useful front end tests. There are tools for it. But it’s just not possible to test everything because you can’t codify every requirement. E.g. ensure that this ui element is 5 pixels below some other element, except when the window shrinks, and …

I haven’t seen great front end tests. But the ones I’ve seen mostly focus on functionality and flow rather than aiming to cover all possible scenarios. Unit tests are different in this regard.

Integration testing makes sense but I find it hard to do in the time I have.

This is a red flag. Building tests should be a planned part of your work, usually described as acceptance criteria. If you need 4 hours to write a code change, then plan for 8 or whatever so you can build tests. Engineering leaders should encourage this. If they don’t, I would consider that a cultural problem. One that indicates a lack of focus on quality and all of the problems that follow.

Edit: I want to soften my “red flag” comment. That’s a red flag for me. That job isn’t necessary bad. But I would personally not be interested. It’s ok to accept things like, “we don’t write tests and sometimes we deal with issues”. Especially if it’s a good job otherwise.

9

I made some changes to disk partitions. Now I'm seeing an issue with mounts. It's not a big problem but it's definitely confusing me.

[alex@rog-g15dk dev]$ sudo mount /home-temp
mount: /home-temp: can't find in /etc/fstab.
[alex@rog-g15dk dev]$ cat /etc/fstab
New                                         Partition    /home-temp   defaults            0 0 # /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
#                      
UUID=5E74-A00E                              /efi         vfat         noatime             0 2 
UUID=53a2c9bc-31dd-4e52-902f-633867253481   /            ext4         noatime             0 1 
tmpfs                                       /tmp         tmpfs        noatime,mode=1777   0 0 
/dev/nvme0n1p2                              /home        ext4         noatime             0 2 
/dev/nvme0n1p3                              /steam       ext4         noatime             0 2

Can anyone explain what 'mount -a' is trying to mount?

Here's the context on the changes I made. My desktop used to run windows. I recently installed linux as well (dual boot). A bit later I destroyed the windows partitions. This left the beginning 2/3 of the disk unused.

Today I decided to reclaim that disk space. I created 2 new partitions, copied some data to them, updated fstab accordingly, rebooted, and grew the steam partition to 700GiB. That process had a couple of small bumps, including a partition that was mounted to '/home-temp'. I destroyed that partition before using it all.

So this error is definitely caused by me. That's fine. I'm just trying to understand what's going on and how to clean up the little mess.

90
submitted 7 months ago* (last edited 7 months ago) by Lodra@programming.dev to c/linux@lemmy.ml

I'm ditching Windows in favor of Linux on my personal desktop. And so I'm looking for advice on which distro I should start with.

About Me

I use Linux professionally all the time but mostly to build ci/cd pipelines and for software development/operations. I've never been a Linux admin nor have I ever chosen the distro I use. I'm generally comfortable using Linux and digging into configs/issues as needed.

Planned Usage

I use this machine for typical home usage: Firefox, a notes app (currently Notesnook), maybe office style tools like word and excel. I also use this for gaming: Steam, Discord, etc. Lastly and least important, I use this for a small amount of dev work: VSCode, various languages, possibly running containers.

What I'm Looking For

I'd like an OS that's highly configurable but ships with good default settings and requires very little effort to start using. I don't want it to ship with loads of applications; I want to choose and install all of the higher level tools. Shipping with a configured desktop is perfectly fine but not required. Ideally, I can have all of this while still keeping the maintenance low. I think that means a stable OS, a good package manager, stable/automatic updates, etc.

Last bit. Open source is rather important to me. I prefer free and free.

Anyone have good suggestions??

Edit

I'm aware of tools like Distro Chooser. They've recommended Arch Linux and Endeavor OS to me so far. But I'm not ready to trust them yet. I'm looking for human input.

Edit 2: Hardware Info

I'm running on an ASUS ROG Strix GA15DK. It's just over 2 years old. The hardware was shiny but not top-tier at the time. It’s not new at this point but also not old by Linux standards.

  • AMD Ryzen 7 5800X Processor
  • NVIDIA GeForce RTX 3070
  • 16GB DDR4 3200 MHz RAM

Edit 3

It's official. I installed EndeavourOS! I got it to work without any issues. Yup, first try. It definitely didn't take me ~10 tries :D

Thanks for all the input all! Wonderful crowd here!!!

9

cross-posted from: https://programming.dev/post/1562654

FYI to all the VS Code peeps out there that malicious extensions can gain access to secrets stored by other VS Code extensions as well as the tokens used by VS Code for Microsoft/Github.

I really don’t understand how Microsoft’s official stance on this is that this is working as intended…

If you weren’t already, be very careful about which extensions you are installing.

2

Here's an upcoming feature for those wanting to use multiple profiles in VSCode but don't enjoying micro managing settings across many different profiles. And good news: This feature is currently being developed!

The feature request is Extend from the Default Profile. The idea is to allow users to organize settings into various layers. Global settings in the default profile. Maybe python specific settings in a python profile. And then golang specific settings in a golang profile. Or however else you want to organize things! This will be a huge help when working with many different workspaces and languages which all need little adjustments.

This idea actually dates back all the way to November, 2016! While it has nearly 600 votes, nobody implemented the feature. Thankfully, the new feature (again, issue 156144 was requested about a year ago and was actually a part of the Iteration Plan for June 2023. Unfortunately, it wasn't completed in time (that's ok! Thanks devs!) and was pushed to the July 2023 iteration. Hopefully, we'll have this feature released soon.

If you're as excited as I am for this one, then vote for the feature with a thumbs up.

Yes, it's already in development but votes can make this feature a priority. You can also vote for specific implementation details too!

10
submitted 10 months ago by Lodra@programming.dev to c/memmy@lemmy.ml

I love the new feature to hide posts! But it's a bit clunky if I want to find an older post. Any chance we can get an option to not hide posts when viewing a specific community? I.e. Only hide posts when I'm scrolling through the main feeds.

1
  • Accessibility improvements - Accessible View for better screen reader support, Copilot audio cues.
  • Better editor group and tab resizing - Set min tab size, avoid unnecessary editor group resizing.
  • Skip subwords when expanding selection - Control whether to use camel case for selection.
  • Terminal image support - Display images directly in the integrated terminal.
  • Python extensions for mypy and debugpy - For Python type checking and debugging in VS Code.
  • Remote connections to WSL - Connect to WSL instances on remote machines using Tunnels.
  • Preview: GitHub Copilot create workspace/notebook - Quickly scaffold projects and notebooks.
  • New C# in VS Code documentation - Learn about C# development with the C# Dev Kit extension.
4
Hidden Gems: VSNotes by Patrick Lee (marketplace.visualstudio.com)

This is the first of a (hopefully) recurring series where we showcase extensions that are likely unknown to most users. Starting with patricklee.vsnotes!

Marketplace Description

VSNotes is a simple tool that takes care of the creation and management of plain text notes and harnesses the power of VS Code via the Command Palette.

Why I like it

VSNotes seems to be built for frequent note taking. E.g. Taking daily meeting notes and keeping them organized. There are quite a few alternative extensions like dendron.dendron that do this quite well but are much more complicated. I like VSNotes for its simplicity. It's easy to use.

More importantly, I don't want to create a large number of notes. I just want to manage a few organized files and have them accessible at all times. Here's a screenshot from my work laptop.

No date stamps. No tags. No subdirectories. Nice and simple. Having these notes embedded in VS Code gives me the expected benefits like markdown syntax and preview. But my favorite part is the Activity Bar icon (far right in my screenshot). These notes aren't stored in my active workspace. They can be but I choose to store these notes in ~/notes instead. This means that the files within that directory are globally available regardless of which workspace is active. If you work with many different repositories and workspaces, this is fantastic!

A few use cases

  • Basic notes that are always open... duh. So you don't have to send yourself messages in Slack
  • Commands.md: Some bash magic. Some kubectl favorites. Some fancy git commands. All copy/paste-able into the embedded terminal
  • Diagram.d2: I manually set the file extension. Now I can preview terrastruct.d2 diagrams conveniently!

My Configuration

{
  "vsnotes.defaultNotePath": "~/notes",
  "vsnotes.defaultNoteTitle": "{title}.{ext}",
  "vsnotes.noteTitleConvertSpaces": "-",
}
1

First and foremost everyone, welcome to our new little community!

I've watching the subscriber count climb slowly over the last ~36 hours from 0 to the current 64 subscribers. Exciting stuff! And impressive too, given that we don't have any content yet 🙂

So I'd like to hear from the crowd. What content do you want to see here? Maybe some periodic posts like monthly patch notes? Reply with your ideas!

3
submitted 11 months ago* (last edited 11 months ago) by Lodra@programming.dev to c/vscode@programming.dev
view more: next ›

Lodra

joined 11 months ago
MODERATOR OF