Threads for sentry

  1. 5

    Plexamp is coming along really nicely these days and is what I use myself.

    It has integration with Tidal letting you (virtually) add streaming content to your local Plex library alongside items that you have stored on your service so my game albums that were never released commercially and/or are unavailable for streaming live nicely alongside streaming titles and purchased titles from Bandcamp for artists I want to support.

    I wrote a bumper post about this whole setup for anyone who wants to evaluate it as an alternative: https://utf9k.net/blog/plex-tidal-together/

    1. 1

      So far all I’ve done this morning is write a shell function that uses mpv to play a random stream of Kumamon videos from the Japanese YouTube channel.

      I figure it’d be nice to have some wholesome content available on demand.

      I’ve also been plowing through Four Thousand Weeks which essentially says the best time management system is to accept the cold reality that death will come for us all. Once you manage that, you’re slightly better equipped to realise that everything you choose sacrifices the possibility of every other possible thing you could have done.

      1. 3

        Centos 6? Tha’s EOL already…

        1. 2

          At the bottom, it says the roadmap was derived from a Reddit comment which was posted… 7 years ago

          1. 1

            I thought this looked familiar, I recall seeing this on Reddit many years ago

            1. 1

              Yes, on r/sysadmin and r/homelab!

        1. 16

          Well now, I had to do a double take after blindly opening Lobsters and seeing my own blog post on the front page!

          Hopefully others can get some use out of this feature since I find it pretty nifty :)

          1. 3

            Is there any way to use environment variables in the condition? I keep my global git config in a git repo and I’d love to have a mechanism for conditionally including machine-specific overrides to some of the settings.

            1. 5

              It doesn’t look like Git’s conditional includes feature supports reading environment variables – it only supports these keywords:

              • gitdir
              • gitdir/i
              • onbranch

              However, the Environment section of the configuration docs lists some environment variables that you could set on specific machines to change Git’s configuration.

              Per-machine configuration using GIT_CONFIG_GLOBAL

              Of those environment variables, GIT_CONFIG_GLOBAL seems the easiest to use. You could use it by putting these files in your config repo:

              • shared_config
              • config_for_machine_1
              • config_for_machine_2

              Within each machine-specific config, use a regular (non-conditional) include to include shared_config:

              [include]
              	path = shared_config
              ; Then write machine-specific configuration:
              [user]
              	email = custom_email_for_this_machine@example.com
              

              Finally, on each of your machines, set the environment variable GIT_CONFIG_GLOBAL to that machine’s config file within your config repo.

              Setting a default config for other machines

              If you want some machines to just use shared_config without further configuration, name that file config instead and make sure your config repo is located at ~/.config/git/. On those machines, you don’t need to set GIT_CONFIG_GLOBAL. This will work because $XDG_CONFIG_HOME/git/config is one of Git’s default config paths.

              1. 1

                Hmm, not that I know of off the top of my head but I’ve never actually sat down and read the Git documentation so I’d be surprised. You could perhaps look into templating your gitconfig using something like chezmoi? There’s always nix which comes up too but that’s quite a bit overkill just for fiddling with some dotfiles of course.

                1. 1

                  I can work around it now by generating the file locally, it’s just been a mild source of annoyance for me that I need external support for this.

              2. 1

                Ah, a note for anyone trying this. The original version was missing a trailing slash on the end of the includeIf directive. I’ve just pushed a fix for the typo but if you copied it earlier and were having trouble, just a heads up.

              1. 39

                Personally, fastmail - web client.

                1. 9

                  +1 - Fastmail’s web client is several orders of magnitude less annoying than Gmail for me, and unlike GOOG where you ARE the product, Fastmail is straight up selling me a service and hosting my email in exchange for $$$. Very simple and compelling value prop there. How novel :)

                  I switched after GMail went through a redesign a number of years back that made it all but unusable for people with any kind of vision issue at all. I’ve heard from multiple sources that the internal Google group for older folks absolutely had a fit but were summarily ignored. It was so low contrast and hard to read that I was actually ending up with severe eyestrain headaches at the end of the day on the regular.

                  1. 2

                    How do you find Fastmail? Their service looks like it provides almost everything I want (in an ideal world, everything would be encrypted server side and search run from a CVM so that they couldn’t access my email even in the event of a compromise, but that’s not something that’s offered by any provider), but they seem very expensive. They seem okay if you’re a single person and probably fine if you’re a company, but they’re missing any kind of family plan, which is what I’d need to stop hosting my own email.

                    Office Microsoft 365 has a family plan that costs about as much as two of the 30 GB Fastmail plans and comes with 50 GB of email storage for each of up to 6 users, along with all MS Office and 1 TB of OneDrive, which makes Fastmail seem incredibly costly in comparison (even with the ability to add $30/year users to your $50/year subscription with the domain, 2 GB of email space is nothing these days and $30/year for 2 GiBi is insane: 2 GiB of geographically redundant cloud storage with a decent SLA is <$1/year).

                    1. 3

                      I have been using it for years. I am paying directly for my email, so I am the customer rather than the product. This is also all they do.

                      I have an office subscription too.

                      My needs are pretty basic.

                      1. 2

                        Respectfully you can’t compare the economies of scale in a company like Fastmail to a behemoth like Microsoft. While I can appreciate the value prop you describe, and I’m told Outlook365 is actually a formidable mail environment, I personally am happy to support a small company that does one thing and does it VERY well. That’s why I put my money on Fastmail.

                        1. 2

                          Respectfully you can’t compare the economies of scale in a company like Fastmail to a behemoth like Microsoft

                          I agree in general, but I’m comparing the mail hosting parts of the two offerings, the MS bit also includes a load more things that are more expensive to develop (the office suite). It looks as if Fastmail builds their own physical infrastructure, so I’d expect that they have pretty solid economies of scale. If not, then they could outsource their storage to a cloud provider and benefit from the provider’s economies of scale.

                          I personally am happy to support a small company that does one thing and does it VERY well

                          To be honest, if it were just me, I’d be very tempted to move, but for a family it’s a lot more expensive than self hosting. Once you’re up to four users, you’re on $200/year and there are quite a few providers that will offer a VM that can handle far more than four users for that much. I presume that if you’re building racks of infrastructure for serving thousands of customers, it’s cheaper. That means that the majority of the costs of Fastmail are some combination of:

                          • Administrative overheads (should be low - managing email infrastructure is eyvery low overhead per person at scale, my old university computer society manages email for a few hundred people with a handful of admin folks giving up an hour or so of volunteer time periodically)
                          • Cost of first-party software development (particularly the client, which I’ve heard is very polished - I believe a lot of their server software is open source things like Cygnus that they contribute to).
                          • Profit.

                          I don’t know how it’s split between these three. The interesting thing is that the first of these is really the only cost that doesn’t benefit (much) from economies of scale. If they doubled the number of users, the cost of software development would be roughly the same, but would be amortised over twice as many customers. I would have thought that about $20/year would be the sweet spot for the 30 GB plan to maximise profit and I’m really curious how their economists picked the price points they have. They’ve been around for over 20 years, so I can’t imagine it’s because they are limited in the speed at which they can manage growth.

                        2. 1

                          2 GiBi is insane: 2 GiB of geographically redundant cloud storage with a decent SLA is <$1/year).

                          Doesn’t that heavily depend on your traffic volume and structure, i.e. number of requests?

                          1. 1

                            Yes, though full downloads of a mail spool are pretty rare. Looking at Azure’s pricing, there’s no per-GB transfer cost, and the cost of read / write operations is a few cents per 10,000 operations ($0.13 for writes, $0.005 for reads). Assuming that your full-text search isn’t implemented using grep, I’d expect the cost there to be well under another dollar. You probably won’t hit 10,000 writes/year (probably 2-3 for every incoming mail: write the message, update the index, update metadata, plus another one [though these could be batched] when you mark something as read or add tags / move it to a folder, even at 10 per email, 1,000 emails per year is maybe slightly low for a low-volume user, assuming no batching of updates) for a 2 GiB mail spool and you need a lot of reads at half a cent per 10,000 for that cost to matter. If you use the native blob indexing facility for tags / folders with JMAP then that probably adds a bit more cost, but I’d imagine that they’d use something custom for that. Possibly if you have a lot of clients all downloading all messages you’ll hit a lot of reads, but I’d expect the cost of reads to be in the noise.

                          2. 1

                            Is there a way to bring your own domain to MS 365? That was what stopped me last time I looked for my family stuff.

                            1. 1

                              I’ve not tried but there is some documentation that suggests it’s possible.

                              1. 1

                                Sure, you just need to opt for a business plan or whatever it’s call. I don’t think you can do it with the lowest tier of family plan but I’ve used my own domain (utf9k.net) with Office 365/Outlook in the past.

                                Err, I assume you mean sending email from O365 and using it as your login address rather than say; transferring your actual domain registration. I assume the latter isn’t possible but I would be surprised

                                1. 1

                                  Yeah, I meant using O365 to send/receive mail for my own domain. Last time I looked, I couldn’t figure out how to make it work on a family plan, and the price bump for the lowest enterprise plan where it’d work was more than I was willing to do.

                                  Thankfully, I’m grandfathered into the old free G Suite plan, so we just use that for email and use O365 for other things.

                                  1. 1

                                    Officially, you can only host your own domain if you use GoDaddy as a registrar, but there is a way to get around that limitation.

                                    However, I would suggest that you don’t host your primary email address with Microsoft as part of the Office 365 subscription. The main reason is that if anything happens to the subscription you will most likely lose access to the premium benefits, which means that you won’t be receiving any emails from Microsoft as well.

                              2. 1

                                Ah, but you can’t host your own domains on O365 unless your registrar is … GoDaddy, which, no.

                                1. 1

                                  I use Fastmail for my personal email+calendar+etc and work uses Office 365, so I’ve used both web clients.

                                  FWIW I like the web client for Fastmail more than the Outlook Web one. Fastmail is a bit more “power user friendly”, i.e. setting up new email filters and things like that are easier to both get to and configure. Despite not being more complex for beginner users either, I find. Fastmail UI is also faster in my experience. Outlook Web does some fancy AI sentence completion features and stuff, but I don’t really want this - so not having it is probably a plus in my book.

                                  With my amateur marketing hat on, I think the 2GB Basic plan is mostly there to make the 30GB Standard Plan look better value. And for those folks who actually don’t need much at all by way of email.

                                2. 1

                                  Same, but mostly by lack of a better alternative on Windows.

                                  1. 2

                                    It remains shocking to me that there Windows doesn’t have a CalDAV/CardDAV client by default.

                                1. 4

                                  As someone who has dabbled enough with Emacs to “get it” but not enough to be anywhere near proficient in elisp, is it just me or is Emacs unstable?

                                  Well, I’ll clarify a bit. I use emacs-plus with Doom Emacs which works fine, although the compilation + setup process on a new device is something like 20 minutes once Homebrew builds it from source and installs the thing.

                                  Emacs daemon + emacsclient works fine but I’ve never had any luck getting the thing to actually run once on startup and work seamlessly from then on. I find myself killing the process and restarting it for reasons I don’t remember anymore so of course, this post isn’t exactly an actionable question.

                                  I wish Emacs had the speed/lightweight feeling of neovim but with the extensibility of the ecosystem and quirks of course. org-mode and magit are wonderful and posts like this tempt me back but it feels like getting stuck in quicksand where I end up wasting more and more time with less to show for it.

                                  I fully realise this may just be bad luck as a (relative) beginner of course.

                                  1. 13

                                    is it just me or is Emacs unstable?

                                    Vanilla Emacs, out of the box, is very stable. In my experience, it’s typically me that /can/ make it unstable (with own customisations + installing packages).

                                    If still keen to tweak and customise, keeping customisations under revision control is a great way to revert back to stable at any time.

                                    I use emacs-plus with Doom

                                    I’m not a Doom user myself, but have been on Emacs Plus for many years. Out the box, Emacs Plus gives a fairly vanilla experience (w/ some patches for macOS) but is also very stable.

                                    Doom seems to have lots of happy users and an active community who may be able to help.

                                    I wish Emacs had the speed/lightweight

                                    Vanilla Emacs, out of the box, packs a lot more than it may initially seem (and is very snappy) https://karthinks.com/software/batteries-included-with-emacs

                                    1. 1

                                      Oh, that batteries-included list is great!

                                    2. 4

                                      Hmm. I haven’t been using it as heavily, but I definitely don’t get weird instability issues unless I’m doing something like live-setting variables, adding/removing hooks, or otherwise messing with the configuration live.

                                      If you use LSP stuff, check out the LSP performance tips?

                                      1. 1

                                        That helps me, thanks!

                                      2. 1

                                        I’ve been using Emacs for a very long time (on and off since 2002 or so when I first found it, and pretty much exclusively for… 15? 16 years?). Last time I’ve declared .emacs bankruptcy I tried some of these fancy batteris-included things like Doom Emacs. I could never get any of them to work. Sooner or later I had to break out ye olde Emacs Lisp reference booke and have at it.

                                        I suspect these things work great if you don’t stray too much from what the developers/packagers had in mind. But at that point you might as well use Visual Studio or Eclipse or whatever, where you’re also pretty much stuck with what the developers had in mind, but there are more of them. Otherwise, if you don’t use Emacs Lisp, don’t really customize anything, and don’t have muscle memory issues, I think all you’re left with is you get l33t hipster points :-).

                                        I also stopped using emacs daemon + emacsclient a long time ago, I’ve found that SSDs largely made that redundant in terms of startup speed, and I don’t really need to close my Emacs sessions anyway so…

                                        1. 2

                                          I’ve been using emacs since 1992, and I’m both mystified and gladdened by the cool new hipster Emacs “distros”. They’re not for me, vanilla emacs works fine, but it’s great to see Emacs retain mindshare!

                                          As for emacsclient, I agree. It was maybe great in the age of Eight Megabytes And Constantly Swapping, but now I just spawn a new tmux window and start a new emacs in it…

                                          1. 4

                                            I’ve been using emacs since 1992, and I’m both mystified and gladdened by the cool new hipster Emacs “distros”. They’re not for me, vanilla emacs works fine, but it’s great to see Emacs retain mindshare!

                                            The fact is that the majority of emacs keybindings are simply not something that stands the test of time. For example, the window keybindings:

                                            C-x 2  Split window vertically
                                            C-x 3  Split window horizontally
                                            C-x 1  Delete all other windows
                                            

                                            In emacs, C-x is used for a lot of baseline commands, so there is no memorable component other than the numbers, why a user should have to remember seemingly random numbers for this sort of interface is beyond me.

                                            Compare with vim, where C-w is the “window” shortcut leader. Normal up, right, left, and down commands work with this to change to that window, and the commands to split the window are:

                                            C-w s  Split window vertically
                                            C-w h  Split window horizontally
                                            

                                            with vim, you’re given a hook – w for window, s to split, h for horizontal. There are many, many other points of pain that present themselves to a new emacs user where, while vim is painful, it provides meaningful names for each operation to allow memory recall.

                                            And while it can be said that emacs is designed to allow everything to be rebound, it’s hard enough to remember the commands from a new system without having them rebound.

                                            1. 2

                                              I beg to differ. C-x 2 will result in two windows, C-x 1 will result in one window, there even is C-x 0 which deletes the current window.

                                              The same works for frames, here the prefix is C-x 5 and then 2 for new and 0 for close.

                                              I find that intuitive, but admittedly I use Emacs for two decades.

                                              1. 2

                                                Ahhhhh, frames is what I was thinking of when I dug that out, I think

                                                The same works for frames, here the prefix is C-x 5 and then 2 for new and 0 for close.

                                                Do you not see how this is not intuitive? C-x 5 2 is meaningless to memorize :(

                                                1. 2

                                                  Well, there are five letters in frame… :D

                                                  But for real, it is completely unintuitive. which-key helps (you can end any prefix with C-h and it’ll show you a list of what each key would do), but if the key just continues the prefix then you’ll get something like +ctrl-x-5-prefix unless you explicitly bind that. Sometimes I even just run the command by name as opposed to the keybind because I’m a fast enough typist that I can do M-x split hor in about a second anyway.

                                            2. 1

                                              Oh, no doubt. I’m pretty sure that all these things work fine for someone whose mindset about the whole computing thing isn’t as old as mine, otherwise they wouldn’t have so much traction.

                                        1. 8

                                          This one isn’t necessarily unheard of but it was particularly novel at the time as I had encountered it at my first job and no one was able to track down the cause.

                                          We would get builds that would fail for no particular reason but intermittently with no obvious pattern.

                                          I think we shrugged it off for like 2 months before someone got annoyed and spent an entire day trying to figure it out.

                                          Basically, we were using a commit sha as the version for a Docker image and not stringifying it. I believe the combination was that when you had all numbers and a single e, it would be interpreted as scientific notation.

                                          I think Helm 2 was the culprit where it would interpret what we assumed was a string and turned it into a number, which was not a valid value.

                                          I’ve seen this pop up a few times since in projects but it’s one of those things that is rare enough to shrug off for a long time

                                          1. 5

                                            That’s a “feature” of yaml not specific to helm. The Yaml spec is quite large and there are a lot of surprising things in there that crop up when you least expect it.

                                          1. 6

                                            I’ve got another blog post to write up on a bluetooth annoyance that I finally looked into. Specifically, that audio quality degrades when you go to use your microphone.

                                            I’d never noticed this before strangely but I think it only came about when we started having bridge calls, that is, meeting calls that would run all day in the background while we were working from home.

                                            They weren’t actually meetings but a drop in/drop out channel for having discussions and so on.

                                            Turns out you can’t really use Spotify (or really any audio) at a high quality while using your microphone. I think it was only exacerbated because Microsoft Teams seemingly claims a hold on your microphone even while muted so you’re constantly at a lower sample rate when in a call.

                                            If anyone is interested in a lightweight explainer as to why, I’ll be posting it sometime shortly at https://utf9k.net/blog/

                                            1. 2

                                              The same thing happens with AirPods on a Mac. To maintain the higher audio quality when I join a video call, I often switch to the Mac’s built in mic instead if the AirPods mic, but keep the audio I hear coming through the AirPods.

                                              It’s super fiddly and a pain in the butt.

                                              I’m looking forward to reading your post.

                                              1. 1

                                                Mhmm, that’s essentially what I’ve opted to do as well. Interestingly, you can see the sample rate change from 48000hz to 16000hz (or thereabouts) in Console.app and vice versa

                                            1. 1

                                              An address will exist in the country’s postal service’s database Unfortunately, my flat address (1B/2A) didn’t exist in the NZ Post database until I request it be submitted. It seems there was one lady who was in charge of addressing (or so her job title suggested) and that was all it took to get it added.

                                              As a positive consequence, a great deal of websites then suddenly started seeing my address as valid. Until then, I had to drop down to just 2A. It didn’t really matter much since you couldn’t physically access our portion of the building from the street anyway.

                                              1. 2

                                                I bought a NAS yesterday so gonna set that up and probably do some cleaning

                                                1. 1

                                                  Very cool! I’ve had it on my list to try and find videos similar to this of people using Emacs or Vim so I’d love to hear if people take/took Drew up on his suggestion and/or if there are already existing resources that are just people editing text and vocalising the process

                                                  1. 1

                                                    Drew’s video already includes him using Vim—you don’t need to wait for additional submissions.

                                                    I don’t think this is a good style of video to learn Vim from, though, because it’s poorly organized for that purpose. As the linked page says,

                                                    The purpose of this page is to provide a reference for people writing new software which involves text editing tasks.

                                                    If you already know how normal text editing works, Drew spends too much time reiterating that. Even in the Vim section, he often switches between explaining Vim’s features and explaining generic text-editing features you already know.

                                                    A video focused on teaching the Vim or Emacs editing models and keybindings could be much more concise. I bet you could find one just by searching YouTube for “Vim tutorial”.

                                                    1. 1

                                                      I guess I was more interested in watching people use it from a more wholistic point of view. For example, I recently started investing in org-mode (via Doom Emacs so using Vim bindings).

                                                      While there are plenty of great org-mode tutorials, a strict tutorial can be quite hard to express ie; how do all of these disparate bits and pieces work together in a real life setting.

                                                      Likely I just haven’t properly sat down and invested enough time but I like to think that the style of watching someone use a tool to achieve an end goal vs a tutorial about the tool itself have different focuses. The former is much more likely to help me understand the value of it but not necessarily how to go about actually using the thing in question if that makes sense?

                                                      I didn’t really clarify in my original comment but in this case, the wholistic format is what I find interesting more than any specific thing being demonstrated :)

                                                      1. 1

                                                        I agree, a video of someone using Vim or Emacs for actual work while making it clear how they are using the editor would be a great way to learn.

                                                        I just tried searching for a video like that. I found plenty of recordings of livestreams where people use Vim (example). However, in my quick searches I’m afraid I couldn’t find any videos of a programmer using software that displays their keystrokes on screen, or of a programmer aiming to talk about how they are using the editor to do everything they are doing.

                                                        1. 4

                                                          ThePrimeagen has some nice vim videos with software that shows the keystrokes: https://www.youtube.com/watch?v=H3o4l4GVLW0

                                                          1. 2

                                                            I think what you’re looking for may exist on destroyallsoftware.

                                                    1. 3

                                                      Finally found my TOTP seed for Lobsters so I can log back in for starters :P

                                                      Surprisingly, I managed to win the tenancy of my own little one person place so no more having to live with flatmates which will be an interesting change

                                                      My weekend is just going to be cleaning and preparing to list my room bleh

                                                      1. 10

                                                        I’m using emacs and org mode. And this weekend I started trying out https://github.com/org-roam/org-roam org roam which lets you kinda do what roam does in org mode.

                                                        Still not sure about the roam stuff but its nifty, my org notes were pretty haphazard, I’m hoping it helps.

                                                        1. 2

                                                          I’ve looked at roam/org-roam a couple of times, but haven’t quite grokked it. Do you have to have a single .org file per topic for it to make sense? How hard is it to switch over from a current mature org set of notes?

                                                          1. 4

                                                            I haven’t used it heavily myself but I have got it set up and it appears the focus is on backlinking rather than folder heirarchy. You’d presumably need to add the backlink syntax which I believe is something like [[Topic Name][topic_filename.org]] as well as any possible metadata like tags but just a #+ TITLE should be enough.

                                                            It’s basically that in conjunction with Deft, a… mode?[1] for searching across plain text files in a directory. It can do recursive folders too but org-roam seems to just operate by creating new links in your highest level folder. The author also uses naming conventions like private- just to separate private org-roam notes from public. Public meaning published on their website so if your notes are primarily online, you can ignore that aspect of course. Just that org-roam has some templates you can override to allow setting a public or private note/link etc

                                                            I’m not sure if that helps at all with gauging the amount of effort required though? I would imagine it’d require reviewing most of your notes and adding backlinks to actually get benefit out of org-roam’s reason for existing vs plain old text search which also works perfectly fine

                                                            [1] My terminology is flaky since I’m very new to emacs

                                                            1. 1

                                                              Thanks for this evaluation. I’ve thought it sounded very interesting and potentially useful, but it’s been hard to gauge whether it could really fit my workflow. From what you say, it might be worth experimenting with at some point.

                                                            2. 1

                                                              Great questions and I only started using it since Friday, for the latter all I can say is: my tests are ongoing.

                                                              I am starting to filter/update things into it slowly, mostly just doing a “take 5 minutes to update notes” per day kinda deal. Not trying to do it all at once or anything.

                                                              It seemed to pick up my giant org dir of crazy amounts of org files fine though.

                                                          1. 2

                                                            One barrier to entry is that I had no idea how to install it on my desktop

                                                            I use Emacs via Cygwin

                                                            GNU Emacs 26.3 (build 1, x86_64-pc-cygwin) of 2019-08-30

                                                            There are pre-compiled binaries for Windows (native):

                                                            http://ftp.acc.umu.se/mirror/gnu.org/gnu/emacs/windows/

                                                            The Emacs wiki has a bunch of info

                                                            https://www.emacswiki.org/emacs/MsWindowsInstallation

                                                            In my previous job I used Emacs extensively to plan my workday and to read email. I had a Windows desktop and used the native build (from memory, it’s been a long time). It worked fine.

                                                            1. 3

                                                              And don’t forget the real bleeding edge Windows pre-compiled binaries: https://alpha.gnu.org/gnu/emacs/pretest/windows/

                                                              As a pretty dedicated Emacs user for the past 5 years, I’ll admit to having fought with Emacs on Windows (which I run on my work laptop). Most of my past work had been Linux-native so I was primarily using TRAMP and working on a remote system or local vm under hyper-v.

                                                              I’ve been too chicken to turn on the Insiders channel to get WSL2, so I’m curious how the ergonomics are using native Emacs + TRAMP (into the WSL2 instance) vs. Emacs over X11.

                                                              1. 1

                                                                While I’m not sure what TRAMP is, I know that sometimes inputs can get lost when using terminal Emacs, depending on your terminal of course. Windows Terminal for example, treats Ctrl and Ctrl + Shift as the same thing so trying to do eg; C-c C-S-l to remove a link in org mode will actually fire C-c C-l (which inserts one). It also has some system bindings for keys like Ctrl + (zoom in) which can interfere with terminal Emacs. I’m sure any other regular terminal wouldn’t have the C-l / C-S-l issue though.

                                                                1. 2

                                                                  From the official docs: TRAMP stands for “Transparent Remote (file) Access, Multiple Protocol.”

                                                                  TRAMP is the original “remote editing” before VS Code had it. It effectively lets you work with files on a remote machine via ssh/scp as if they were local (in most cases). Most Emacs modes just work without even knowing it’s a remote file. You can run the native Windows Emacs and still work within a WSL2 instance without mucking about with X11 etc. (There are some caveats, but even eshell supports it and I believe magit.)

                                                                  https://www.gnu.org/software/emacs/manual/html_node/tramp/Quick-Start-Guide.html

                                                                  1. 1

                                                                    Ah! I totally misunderstood your comment then.

                                                                    This seems like a really interesting alternative, and if it works, I’d probably opt for a native Windows binary in that case. I might see if I can get it running on the weekend. Let me know if you end up experimenting yourself as well.

                                                              2. 2

                                                                Oh yeah, that is definitely true and I could do that for sure.

                                                                Originally, I did have my development files on my C drive and kind of fumbled my way around with Powershell. When WSL came about, it was a lot more attractive being able to use regular unix tools and just apt-get install things.

                                                                I believe it’s still the recommended case that you keep everything within the WSL environment for performance reasons? Either way, having to navigate to /mnt/c/code/ was a bit more tedious than being able to just do ~/code for example

                                                                That was sort of the logical steps that lead me to keep everything inside WSL and hence why I opted to get emacs in there, rather than out in Windows land.

                                                                On a similar note, I’ve found it much nicer running the WSL2 Docker Preview (docker daemon + kube inside WSL2) than having it run in Windowsland so it’s basically another reason for keeping my dev environment inside WSL, at least at work anyway.

                                                                That said, maybe someday I’ll give the pre-compiled binaries a spin! Thanks for the heads up

                                                                1. 2

                                                                  I should give WSL a closer look. I think it’s a bit sad Cygwin seems to be forgotten. It has served me well for many years, even as you say that dicking around with /cygdrive is a bit of a pain.

                                                                  Performance-wise I find it much faster to parse large log files using Perl in Cygwin than using pure PowerShell!

                                                              1. 2

                                                                Hmm, I feel like I’ve been sliding backwards recently. Just to be clear, I’m fine mentally, just frustrated that I’m paralysed by choice and I feel like I have a lot of unresolved things to do. In reality, I should just drop a lot of them.

                                                                I wrote an impromptu post trying to express my frustration earlier today if anyone wants to have a read: https://utf9k.net/blog/mental-overhead-of-data/

                                                                1. 2

                                                                  I haven’t invested too heavily into my setup but it’s generally something like this

                                                                  • Standard folders
                                                                  • ~/Code [An alias, ws for workspace, takes me here instantly]
                                                                  • ~/dotfiles [Using GNU Stow (stow) lets me symlink any folders here to their respective root locations]
                                                                  • ~/Dropbox [Generally any notes now that I’m starting to use org mode + PDFs etc]

                                                                  Nothing particularly out of the ordinary besides that. I leave things like node_modules, virtualenvs and whatever in their respective folders and never try to back them up with something like Dropbox (since you mentioned blacklisting with backup software)

                                                                  I’m trying to make better use of search first for most everything I use but I’m not quite there with my files at all.

                                                                  1. 1

                                                                    If you’d like to be on the bleeding edge (and is what Doom Emacs recommends), you’ll probably need to compile Emacs 27 from source :(

                                                                    Emacs 27 decidedly isn’t bleeding edge – the release cycles are very, very long. I’ve been using 27 for months with absolutely no issues. Furthermore, the native JSON parser makes LSP et al far faster.

                                                                    …you do need to compile it, though.

                                                                    1. 1

                                                                      I did a bit of a search for an Ubuntu repository and could only find Emacs 26 via apt-get sadly

                                                                      You’re right though, bleeding edge probably isn’t the right term to use here. Compiling should be easy enough too and I’ll likely do that once I’ve committed my soul to Emacs haha

                                                                      Thanks!

                                                                      1. 1

                                                                        Compiling should be easy enough too

                                                                        I use Ubuntu and like to stay on the latest version of Emacs so I typically use my own builds from source. Once you’ve done apt-get for the necessary -dev library packages, the usual configure, make, make install dance goes very smoothly. It can also be quite fast too if you use make -j and have enough cores.

                                                                        1. 1

                                                                          And a tip is that if you’re just building a newer version of something that has a package, apt-get build-dep that-package will get you what you need in 95% of cases.

                                                                    1. 1

                                                                      The X Windows server I use for Windows is Xming, which has both a free and a paid version. The free version works like a champ with WSL - just run it, set DISPLAY=:0 and you’re good. But I guess it will be a little more complicated once I move to WSL2.

                                                                      1. 2

                                                                        I imagine the exact same steps as VcXsrv should apply? Just make sure it’s allowed through Windows Firewall and that the DISPLAY variable is set to the IP address within /etc/resolv.conf but I’ve never tried it myself. I don’t think it’s as complicated as I would have expected it to be

                                                                      1. 1

                                                                        Trying to figure out the Teamcity Kotlin DSL since our in house Path to Production standards have listed it as our officially supported CI/CD tool.

                                                                        Coming from using Jenkins via a Jenkinsfiles, the syntax for Kotlin hurts my brain a bit. None of it seems obvious or easy to accidentally figure out but maybe I’m missing something.

                                                                        As one example, I was looking to use an access token with the Github commitStatusPublisher build feature but there is seemingly next to no documentation on how to use it. I ended up reading the Java classes and some plugin XML to find out that the DSL syntax for providing a token was something like

                                                                        github = token {
                                                                          token: "blah"
                                                                        }
                                                                        

                                                                        Every other repo used a username/password combo so searching in house repos gave me no insights :(

                                                                        Even more frustrating, the API between commitStatusPublisher and pullRequests is entirely different where pullRequests had something like github = personalToken {} despite seemingly doing the exact same type of authentication. That said, they’re not from the same author so fair enough I suppose

                                                                        After spending a whole day tinkering yesterday, I came across a really well written guide from another team mentioned in passing inside of a code comment within one of the handful of repos that use a .teamcity folder.

                                                                        I haven’t read it just yet but I’d love to know if anyone else has any resources. Preferrably beginner friendly since I’m having to learn Teamcity concepts from scratch and have an exceedingly hard time translating web UI config into Kotlin DSL. Presumably a book on Teamcity would be the most informative given I found the same true with Jenkins

                                                                        1. 1

                                                                          I post a mix of stuff on https://utf9k.net but I don’t post as much as I’d like