1. 2

    This looks really interesting, but as far as I can tell the only option for installation on macOS is by installing the nix package manager, which I’m not sure I want to spring for, especially given limitations of installing nix on modern macOSs.

    1. 2

      macOS Nix install is possible though a little involved (instructions here).

      Docker is another option:

      mkdir ~/notes
      echo "hello world" > ~/notes/hello.md 
      cd ~/notes
      docker run --rm -t -i -p 8080:8080 -v $(pwd):/notes sridca/neuron neuron rib -ws 0.0.0.0:8080
      
      1. 1

        Right, it is possible, but is quite involved, and I don’t want to run a whole Docker container for something lightweight like notes. Would you consider publishing the package on homebrew?

    1. 1

      Do any common editors not have this functionality?

      1. 19

        ed, the standard editor, does not include this functionality.

        1. 9

          Many don’t. And frankly speaking, while you’re reaching for the mouse to open a bunch of menus sequentially then scroll, I am already looking at the relevant diff bit without even moving my eyes from the relevant area on my screen, let alone my hands from the keyboard.

          Point and click UIs can be great for discoverability, but they fall short when it comes to maximize productivity.

          1. 3

            You’re putting words in the parent poster’s mouth, which comes across either as condescending, or at best assumes bad faith, and is hard to address. They don’t mention a workflow with menus or using the mouse, so why did you argument against that?

            And, you say “fall short when it comes to productivity” as if it is a fact when of course it’s not (or cough up som empirical research, thank you).

            Finally, I personally haven’t used any tools without diffing builtin and the most common ones I use daily, emacs’ magit and IDEA (the conflict resolution part, using ‘structural’ (? editable, at least) diffing) are both very usable/fast/your arguments here, without needing to use the mouse.

          2. 7

            I don’t see your point? What’s wrong with having it as a dedicated tool?

            1. 2

              I’m surprised anyone wants or needs this as a stand-alone tool

              1. 20

                I don’t even know how to respond to this.

                1. 16

                  I think it’s just lack of imagination. For example, I told git to use it. Works nicely.

                  1. 4

                    I do the same :)

                  2. 4

                    diff is essential part of my workflow. I use it as a way to double check that I agree with everything before a git commit.

                    1. 4

                      I believe that GP meant something along the line “this diff tool is built-in editors like PyCharm or Visual Studio Code, why use this standalone tool?”

                      I don’t know whether I’m becoming 27 y.o. old man, but the new cool kids on the block don’t use Vim and/or Emacs any more. In my professional experience, most think that vim is just a tool to edit files on a Linux server. These old editors (“old”, kakoune is 5 years old) are now considered a relic from the past.

                      1. 5

                        I know what you’re trying to say, but Emacs and Vim have both had built in diffing tools for decades. It’s not a feature modern IDEs invented.

              1. 3

                I agree with the post that there is a hard problem at the heart of Webmentions, as much as I like the idea. I do include them on my site via webmentions.io, and do render them statically, but only fetch the data every time my (static) site is rebuilt. There’s also a lot to handle in terms of rendering and tweaking to make it compatible with various services, and my implementation is far from perfect. Given how much it increases build times, I’m thinking of removing webmention support for now :(

                1. 1

                  This bit around compiling and rendering sounds specific to the problems with using static sites. If it’s done completely remotely, to the level that something like Disqus or Commento could handle it, it’d just handle a fraction of what Webmentions are capable of. This, of course, requires time and effort to build. And since there isn’t a huge VC company backing such a notion, we won’t see it anytime soon.

                  (originally posted at https://v2.jacky.wtf/post/cc7c38d9-4688-4384-806c-8c1bd3cb0a3c)

                  1. 1

                    Yeah, absolutely agree, the issue I’m describing is probably more related to static sites than webmentions themselves. Point well taken,

                1. 3

                  I really like this, and can see myself using this in some form.

                  One feature that’s missing here that would push it over the line to “killer app” for me, would be the ability to share data as well as applications. That way, you could sync your tasks from a todo app from your laptop to your phone, for example.

                  Anyway, thanks for sharing!

                  1. 3

                    You could probably get jlongster’s CRDT implementation running in here.

                    1. 4

                      schism would probably be a better options since it’s also in ClojureScript :)

                      1. 2

                        Oh very cool I’ll check these out. Thanks!

                  1. 1

                    Here’s mine: https://www.chrisdeluca.me/

                    I write about technical things, creative/writing projects, and other nonsense.

                    1. 2

                      The length of the text can be whatever, it can also be randomised between a set of choices, since it doesn’t matter here. They are simply turning garbage into “normal” text with hidden garbage.

                      The article does state this as a limitation of the method: that you need a lot more “host” text than the length you are encoding. In the example given, this method can encode 255 characters into the bill of rights.

                      Still, pretty cool.

                      1. 1

                        I used to self-host more (NextCloud, VPN, etc), but consciously stopped to reduce maintenance burden.

                        Right now I host some static sites on an intentionally simply configured VPS. I run OpenMediaVault for my home NAS on a GnuBee, along with pi-hole, and Kodi on 2 separate raspberry pis.

                        1. 1

                          Here’s my site: https://www.chrisdeluca.me

                          It’s a hugo site, which I agree with the other hugo users has been hard to keep up with, however I have invested too much in it to switch at this point.

                          My site uses a bunch of indieweb conventions, and supports light/dark system themes. The homepage is pretty busy at the moment, which I aim to improve this weekend.

                          I use it to host my infrequent articles, projects, twitter posts, and books I’m reading/read, along with whatever else. I added a basic choose your own adventure feature, and have utlized it once: https://www.chrisdeluca.me/article/dont-get-pantsed/

                          1. 6

                            Send SMS [in the US] using python (Without Twilio)

                            ;)

                            I think these kind of SMTP to SMS gateways are common in North America but, for example, I don’t think any Australian mobile carriers offer them. Unsure about how common they are in the rest of the world, but wikipedia only mentions US & Canada.

                            Believe the reason they don’t exist in countries like Australia is that subscribers have never paid to receive SMS here (sender pays). So there’s never been an incentive for a carrier to offer such a thing.

                            1. 6

                              Thanks for the clarification. After reading the short text I was left with the question how the payment would be performed (if the mobile number would not be somehow tied to the SMTP login before-hand). From the other perspective: Isn’t a receiver pays scheme together with these SMTP gateways the perfect way to get DOS’ed (in regards of money). Someone just has to send thousands of SMS to you and at some point either your prepaid money will be empty or you will have a very huge invoice.

                              In Europe I have used smstools for sending SMS with a USB-SIM-Card adapter. This comes with a daemon that monitors a folder for text files. When a new text file arrives, it will process it and send it out. So from Python it’s then simple enough to send out an SMS by writing a text file.

                              1. 4

                                Isn’t a receiver pays scheme together with these SMTP gateways the perfect way to get DOS’ed (in regards of money). Someone just has to send thousands of SMS to you and at some point either your prepaid money will be empty or you will have a very huge invoice.

                                I also wondered how this part works, maybe some Americans who know about a bit about the telco industry can explain?

                                (I’m also not sure if any US carriers still charge to receive SMS, I just know that they used to - I think now it’s usually a bundled free addon.)

                                1. 2

                                  American here. You’re correct in that most US carriers no long charge for text messages, but rather lump it in with monthly bandwidth limits. When carriers did charge for texts, it was back in the pre-smartphone era, and still fairly new, and I wasn’t aware of any large scale DDOSing. However, it was always flawed, in that your friend could text you a bunch a you’d get charged a lot. I remember a lot of telling people to stop texting or shutting off my phone near the end of the month.

                              2. 2

                                I quickly researched and it seems that in Austria (not Australia) a similar (but different) email to SMS gateway also exists - e.g. in the email Business Package from A1. It’s charged per SMS sent.

                                There is no documentation, but to my understanding you basically login to your A1 e-mail account normally and then send an e-mail to [number]@smssenden.at. They will then detect “aha, this e-mail actually is an SMS” and re-route it for you. So unlike in the US way explained in the article you always use smssenden.at as destination and A1 will handle whatever carrier the recipient has.

                                1. 2

                                  From Malaysia. Back in early 2000, this is trick we use to send sms for free. But these days I don’t think any of the local carrier has that email address open anymore.

                                  1. 1

                                    I am surprised I didn’t know you had to pay for sms outside US

                                    1. 1

                                      You usually don’t need to pay for SMS these days, it’s included as a free add-on from most carriers (at least in Australia and most countries I’ve ever visited).

                                      The point is that in the US you used to have to pay to send and receive SMS, but in some other countries you only ever had to pay to send. And my understanding is that these SMTP carrier gateways exist from this time. Less clear that the carriers would have an incentive to add them now, if they didn’t already exist (harder to take something away after customers have been relying on it for almost two decades).

                                  1. 4

                                    I use neovim, with a fairly minimal/native setup. I use a bunch of tpope plugins, and have some custom configuration changes for filetypes and some custom plugins for working with the :terminal and some simple note taking. I use configuration directories as outlined by this post, and other places I’m sure. Here’s my config.

                                    1. 5

                                      I’ve seen Diana’s work before and it’s really impressive, this one especially so.

                                      I am seeing the lace rendered above the woman’s face on mobile safari, however.

                                      1. 1

                                        Honor the web the only way it can be: with a slideshow.

                                        1. 3

                                          I’ll be improving my personal indieweb site, and hopefully get post scheduling and syndication to twitter/mastodon working.

                                          1. 1

                                            I really enjoyed this. Even though I’ve been programming for years now, I found the video really helpful, and I immediately sent it to a friend who’s currently in a boot camp. Great work! I’d love to see more in this vein.

                                            1. 2

                                              Thank you!

                                              If you have any topic suggestions/ideas, please let me know.

                                              1. 1

                                                Yeah! Maybe something with recursion using a russian nesting doll and disguised jump cuts? Only half an idea, though.

                                                1. 2

                                                  I actually had made a video on recursion in the past, with boxes generating other boxes based on blueprints :) https://www.youtube.com/watch?v=vLhHyGTkjCs

                                                  1. 1

                                                    Ha, beat me to it!

                                                    What about sorting algorithms with refrigerator magnets?

                                                    1. 1

                                                      Hmm, could you elaborate, please?

                                                      1. 1

                                                        Sure. It’s a half-idea, but my thought was to explain something like bubble-sort, by re-arranging the order of stacked magnets on a refrigerator. Maybe something like these that have different colors, so you can see visually how the sort works based on color groupings https://www.amazon.com/Tiergrade-Assorted-Classroom-Refrigerator-Whiteboard/dp/B01K70O2HO?ref_=Oct_DotdC_3i1i9_0_09c36237&pf_rd_p=89def296-fb7d-550c-8a3f-9de7cb1ee35d&pf_rd_s=merchandised-search-5&pf_rd_t=101&pf_rd_i=3737161&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=2N3HRCNB9X0DX1K6ZZ1M&pf_rd_r=2N3HRCNB9X0DX1K6ZZ1M&pf_rd_p=89def296-fb7d-550c-8a3f-9de7cb1ee35d

                                                        1. 2

                                                          Interesting, I’ll think about it! Thanks!

                                            1. 5

                                              I will be going over lines for a small play, finishing a choose your own adventure style post, and maybe if I have time, other technical improvements to my personal blog.

                                              1. 1
                                                • MacOS
                                                • Linux (home only)
                                                • Firefox
                                                • Alacritty
                                                • Neovim (usually via Vimr)
                                                • mutt (home only)
                                                • Apple Mail (work only)
                                                • pass
                                                • ripgrep
                                                • bash (went back after years of using zsh and then fish)
                                                • slack