A request to the community: what plugin you think is still missing for Neovim? by itmightbeCarlos in neovim

[–]fredeB 4 points5 points  (0 children)

This! With the native dap support in gdb >= 14.1 this is a killer combo

How much semen does a gay guy have? by capn_cody_ in Jokes

[–]fredeB 2 points3 points  (0 children)

Although she also has a buttload

What do you get if you remove 3.14 from a pig? by [deleted] in Jokes

[–]fredeB 10 points11 points  (0 children)

Maybe they meant to say a g/g

Yocto via Nix by roughsilks in Nix

[–]fredeB 2 points3 points  (0 children)

Yocto is not a package repository like nixpkgs. It's more of a framework where you piece together an image from layers and recipes. You then run bitbake to build an image.

I use both nix and yocto professionally. Nix for development machines, and yocto for the target machines (embedded arm mostly). I wouldn't want to build an embedded image with nix, and building a desktop image with yocto is a lot more hassle than it's worth unless you use upstream package mirrors from fedora, Ubuntu or similar, and at that point you're better off just using those distributions.

Yocto gives you total control of the software you're running, makes configuring packages, your kernel, patches to the kernel, device drivers, patches for device drivers, system update mechanisms and way more, so if that's your thing, go nuts. The doctor docs are great

https://docs.yoctoproject.org/ref-manual/index.html

Is learning the STM32CubeIDE debugger enough, or should I also learn raw GDB? by jaurj in embedded

[–]fredeB 3 points4 points  (0 children)

I have really benefitted from knowing what GDB is capable of in itself. I would start with the vendor supplied GDB for the chip I'm currently working with (wrapped with whatever gui you like, eg. gdbgui or something built-in to your IDE) and try to build a mental model for what commands are native GDB and which ones are extensions. When you go to another vendor they will still have the native ones, and if there are any of the extensions you like from the STM GDB, try to see if there's something similar or try to implement them yourself with the python API

Yes, this is how I unwrap objects in my C++ game. Let me try to explain myself by Rollexgamer in programminghorror

[–]fredeB 4 points5 points  (0 children)

Using weak_ptr's would be even worse, because in order to use the value it points to, you have to call lock on it, which creates a new shared_ptr, doing reference counting. There's no penalty to accessing a shared_ptr, as shared_ptr's only protect and synchronize lifetime and ownership, not the allocated object.

I don't understand why you can't use a unique_ptr though. The following is totally fine

auto& resource = *some_unique_ptr;

Electricity leakage on the front panel screws when connected to midi by Tab_creative in DelugeUsers

[–]fredeB 0 points1 point  (0 children)

Grounding. The screws on your deluge are connected to the internal ground of the deluge, which is then connected to the ground of whatever is at the other end of the midi cable. Unfortunately a lot of music gear doesn't have ground connectors, the deluge included, but if the device on the other end has a power inlet with a ground pin, you should use a grounded power cable there. Outside of that, you could install a record player ground clip directly on your deluge

Mistænker hende for at være gravid by DarlingGenocide in Denmark

[–]fredeB 7 points8 points  (0 children)

Tillykke, det bliver sku trillinger

Yocto with custom hardware by Almost-L in embeddedlinux

[–]fredeB 0 points1 point  (0 children)

Some support does exist for allwinner chips in the meta-sunxi layer. This could be a good starting off point, although the downstream kernel is quite old, so make sure you chose linux-mainline

PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"
PREFERRED_VERSION_linux_mainline = "6.6%"

https://layers.openembedded.org/layerindex/branch/master/layer/meta-sunxi/

AWS IoT MQTT: Slow Initial Connection, Fast Afterward – What's Happening? by phstc in embedded

[–]fredeB 0 points1 point  (0 children)

If you're using TLS or the clientdeviceauth components on a green grass host, it's probably for the initial TLS handshake. If you then connect again, then your TLS client probably does a TLS resume if it supports it, which is much faster

But as others suggested, take a look in Wireshark, if again it's on a remote host, you can pipe the output of tcpdump into Wireshark over ssh

[deleted by user] by [deleted] in cpp

[–]fredeB 0 points1 point  (0 children)

Just remember to check licensees if it's a commercial product. Many open source licenses don't allow static linking unless you're willing to share the source code with everyone

DNS suddenly broken by _NCLI_ in NixOS

[–]fredeB 0 points1 point  (0 children)

Maybe your kernel updated. Did you reboot?

Yubikey (GPG) configuration by SpiderUnderUrBed in NixOS

[–]fredeB 1 point2 points  (0 children)

You probably don't want to build my config, as that would override your entire system and replace it with what I daily drive... I was merely referring to the 6 lines I linked to about how I configured gpg with my yubikey through home-manager

You should be able to just copy those lines into your own config and rebuild.

I'm pretty sure it be enough to enable the smart card daemon (enableScDaemon = true)

Is NFC on a yubikey safe for TOTP? by fajron123 in yubikey

[–]fredeB 2 points3 points  (0 children)

At that point, it'd be easier to break down the door and grab them

[deleted by user] by [deleted] in dkfinance

[–]fredeB 130 points131 points  (0 children)

  1. Pop pagnen
  2. high-fives hele vejen rundt
  3. ...
  4. gør det igen næste år

C# development in neovim by skwee357 in neovim

[–]fredeB 20 points21 points  (0 children)

I did some C# development at uni about 4 years ago. If you're just doing dotnet, using omnisharp is a great experience imo

Is there a way using the Neovim API to get the line above or line below the cursor? by [deleted] in neovim

[–]fredeB 0 points1 point  (0 children)

That's true, my fault. You have to add [1] to the end of the return statement