1. 3

    Rust or any language that is closer to the “metal”. I’m a web dev so these things scare me a little bit.

    1. 6

      Question for the group. If you use Stylus (or used to use Stylish), what do you use it for?

      I headed over the the userstyles.org site and most of the styles seem to be “dark themes” or other cosmetic changes like changing the background of a site. Are there more practical uses of the extension? Can it modify HTML or Javascript (where the real power would be), or is it CSS only?

      1. 27

        other cosmetic changes like changing the background of a site

        You call it cosmetic changes, other people call it accessibility.

        1. 7

          I use it to tweak the layout of some of the sites I use, like moving a fixed top navbar to the side, and making it smaller. Or making narrow columns wider. Small stuff like that, which make the browsing experience much more bearable. I rarely use the social or sharing aspects of it. I haven’t found anything useful there, and I’m not sharing my tweaks either, because they’re very personal anyway.

          I rarely use it to hide things, my adblocker can do that more conveniently indeed.

          1. 6

            I apply a style of body { max-width: 800px; } on a few blogs that weren’t designed with wide browser windows in mind—they spill text across the entire width of the screen, which makes them really hard to read. (You could use your browser’s “reading mode” to fix this, too, but this CSS change usually does the job without breaking any layouts.)

            1. 4

              Now that I’ve started using Dark Reader, I use Stylus for well-made, site-specific dark themes. Previously I was using the Gruvbox Dark Everywhere userstyle, but its shotgun approach leaves much to be desired. Beware: Dark Reader has some major performance issues on Firefox.

              Edit: My installed themes (which I enable along with Dark Reader after sunset): https://ptpb.pw/nUrG.png

              Edit 2: Also I enable the Firefox and Tree Style Tabs dark themes. This really needs to get more streamlined.

              Edit 3: And then I get to enable dark/night mode on sites that support it natively, one-by-one as I visit them. Sigh.

              1. 2

                Man, Dark Reader is great. Thanks for bringing my attention to that.

                1. 1

                  Funny that you mention this. I don’t often long for the days when I had a CSS styling addon installed, but exactly this Dark Reader page made me bob my head back 20cm. That page seems to be made for a mobile phone or tablet screen, not a 27” monitor. Wow.

                2. 3

                  Fixing fonts on the most obnoxious websites.

                  1. 3

                    I like to use it to remove ads in core apps I use. I’d like to share the styles I create with others who use those apps. I use the free version of toggl, and they have a persistent, animated thing in the bottom-right corner that tells me the benefits of “going pro”. I just made a stylish thing to display: none the element which matches that rule. It’s great.

                    1. 1

                      Is there an advantage to that over the “block element” feature that exist in most ad blockers?

                      1. 1

                        I use brave and Firefox which have some built in blocking. I haven’t thought of that, but I’ll take a look!

                    2. 3

                      I used to use Stylish - and a predecessor the name of which has slipped my mind - to reduce the size of the UI in Firefox - smaller tabs, less wasted space -> more space for page content.

                      1. 2

                        i’m considering using it to shrink the gmail sidebar label font - they recently increased it from the same size as email body text to a size bigger, and it’s very annoying.

                        1. 1

                          I sometimes use it to tweak interfaces, like get rid of annoying panels or adding bold to certain elements

                          1. 1

                            I just started using this again after forgetting that it existed. Another forum I visit regularly now is ad free and doesn’t waste a bunch of whitespace where these were removed. I created an ironic one for hiding the ads for stylish for android on userstyles.org… :D Also, my day job involves using a console that has a lot of useless (to me) menu items - bye bye.

                            1. 1

                              Can it modify HTML or Javascript (where the real power would be), or is it CSS only?

                              Is it possible for extensions to request access only to modify CSS?

                              1. 4

                                CSS can still exfiltrate sensitive page content (albeit attacks are harder to write).

                                1. 1

                                  If you write your own CSS this is no longer a problem :P.

                                  1. 1

                                    That’s good to know. I’m going to do some reading on this, but do you have anything you recommend?

                                2. 1

                                  There are two sites I frequent that have awful stylesheets that I can’t stand so I have custom stylesheets that make them look better.

                                1. 2

                                  I suppose I will be diving into react and responsive layouts because my understanding is about 3 years behind. I also might be re-writing a discord bot because it’s a dumb bot as of right now and it’s a good way to learn for me.

                                  1. 2

                                    I have a friend that works at IBM. She’s said that her team uses Red Hat systems on a daily basis and it would be counter intuitive to ruin it.

                                    I’m skeptical though.

                                    1. 7

                                      Individual rationality often appears to have no bearing on corporate level actions at all.

                                      1. 1

                                        Exactly, that’s what I said to her.

                                        1. 1

                                          But bringing important parts of your supply chain in house does make sense, and you don’t destroy your supplier when you do that

                                        2. 2

                                          It’s always counter intuitive to ruin things. But the innovation doesn’t stop.

                                        1. 2

                                          Acer C720. I kinda want a thinkpad carbon x1 though.

                                          1. 2

                                            Collecting mechanical keyboards, gaming, web dev and all things cyberpunk.

                                            1. 4

                                              Congrats!

                                              1. 2

                                                There would be a blog here if I got around to building one. I don’t really want to use another technology cause I know building one myself would be a good learning process for me.

                                                1. 3

                                                  I currently am using the nightfox and yes I do program it cause there’s some buttons that I want on the second layer.

                                                  I love it.

                                                  1. 1

                                                    I want a Nightfox badly but I’ve seen nothing but bad reviews (example video review) of the Hako switches, in particular the Trues that are the only remaining available choice.

                                                    You said you love it, so I wonder what switches you have and what your preferences are? Have you tried Zealios?

                                                    1. 1

                                                      I do have the Hako switches and would have prefered MX browns or Gateron browns but I do like these ones. Honestly they were pretty heavy when I first got them but they are actually really nice now, I would compare them to MX blacks.

                                                  1. 1
                                                    >in terminal
                                                    >javascript
                                                    

                                                    But… but why?!

                                                    1. 2

                                                      because that’s what the developer uses?

                                                      1. 1

                                                        I guess the question was about tags. Since the game is played on the terminal and is written in Javascript that’s why I added those tags.

                                                        1. 2

                                                          No he was referring to the fact that it’s a terminal app and you used javascript and they’re triggered about that for some reason.

                                                          1. 1

                                                            I’ll be fine with that if I could run such hipsterscript application as a portable static binary without additional 99 gigabytes of npm dependencies.

                                                            Unfortunately, I can’t.

                                                            …or, can I?

                                                    1. 40

                                                      Whenever I read tech articles about reducing keystrokes I tend to roll my eyes. cd‘ing directories already takes up a very small portion of my time—optimization will never be worth it. Now if you can tell me how to make roadmap estimations that don’t put my team in peril, now that’s going to help me to not waste my time!

                                                      Edit: It’s a cool tool, just maybe the article is touting it as more of a life saver than it actually is.

                                                      1. 12

                                                        I mean, I do too, but people do actually take this kind of thing seriously. I’ve had several people say they wouldn’t use ripgrep because the command was too long to type, but upon hearing that the actual command was rg, were much more satisfied. Maybe I missed their facetiousness, but they didn’t appear to be joking…

                                                        1. 5

                                                          Could they not have just alias’d the command if it was “too long”?

                                                          1. 4

                                                            The people in question don’t sound clever enough for that.

                                                            1. 1

                                                              Are you asking me? Or them? ;-)

                                                            2. 4

                                                              I wonder if these are different people than the ones who complain about short unix command names and C function names…

                                                            3. 9

                                                              For those of us with RSI, these little savings add up, and can make for a pretty big difference in comfort while typing.

                                                              1. 8

                                                                Oh please. If you’re really worried about a couple of words and keystroke saving, you’d setup directories and make aliases that will take you specifically where you want to go. Assuming it was even a GUI you were using with a mouse, you’d still have to click through all the folders.

                                                                Overall, paying close attention to your workspace setting and ergonomics can go a long way in helping improve your RSI situation than this little jumper will ever do

                                                              2. 4

                                                                My thoughts exactly. I have often wasted time trying to optimize something which took so little time to begin with, even if I reduced the time to nothing it would have no significant impact on overall performance. And the less-obvious trap is optimizations like this add additional complexity which leads to more time spent down the road.

                                                                1. 9

                                                                  All right, buddy. Cool.

                                                                  Did I say it a “life saver”? Nope. Did I say it could save you a lot time? Yup. If cd'ing into directories doesn’t waste your time, cool. Move along, read the next blog post on the list.

                                                                  I’m sorry about your roadmap estimations. Sounds like you’ve got a lot on your chest there.

                                                                  1. 31

                                                                    Let me just take a step back and apologize—nobody likes negative comments on their work and I chose my words poorly and was insensitive. I’m rather burnt out and, in turn, that makes me appear more gruff online. I’m positive that someone will find this useful, especially if they’re managing multiple projects or similar use cases.

                                                                    1. 23

                                                                      I really appreciate you saying that. The whole point of this piece was to share something that literally makes me whistle to myself with joy every time I use it. I hope you find some time to take care of your burn out. It’s no joke and I’ve suffered from it quite a bit in the past three years myself. <3

                                                                      I know it’s easy to look at everything as “this is just like X but not quite the way I like it” and I don’t blame you for having that reaction (like many here). AutoJump is to me the epitome of simple, delightful software that does something very simple in a humble way. I wish I had spent more time extolling the virtues of the simple weighted list of directories AutoJump stores in a text file and that ridiculously simple Bash implementation.

                                                                      The focus on characters saved was a last minute addition to quantity the claim in the title. Which I still think will be beneficial to anyone who remotely has frustrations about using cd often and may suspect there is a better way.

                                                                    2. 6

                                                                      If only there was a way to optimize crank posting. So many keystrokes to complain!

                                                                    3. 2

                                                                      the parent tool is probably overkill but a simple zsh function to jump to marked projects with tab completion is pretty awesome to have.

                                                                      alias j="jump "
                                                                      export MARKPATH=$HOME/.marks
                                                                      function jump {
                                                                      cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
                                                                      }
                                                                      
                                                                      function mark {
                                                                      echo "mark name_of_mark"
                                                                      mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
                                                                      }
                                                                      
                                                                      function unmark {
                                                                      rm -i "$MARKPATH/$1"
                                                                      }
                                                                      
                                                                      #if you need it on another os.
                                                                      #function marks {
                                                                      #ls -l "$MARKPATH" | sed 's/  / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo
                                                                      #}
                                                                      
                                                                      # fix for the above function for osx.
                                                                      function marks {
                                                                      \ls -l "$MARKPATH" | tail -n +2 | sed 's/  / /g' | cut -d' ' -f9- | awk -F ' -> ' '{printf "%-10s -> %s\n", $1, $2}'
                                                                      }
                                                                      
                                                                      function _completemarks {
                                                                      reply=($(ls $MARKPATH))
                                                                      }
                                                                      
                                                                      compctl -K _completemarks jump
                                                                      compctl -K _completemarks unmark
                                                                      
                                                                      1. 1

                                                                        I’ve tried this, but I keep end up making shortcuts and forgetting about them because I never train myself well enough to use them until they’re muscle memory.

                                                                        I think I’ll just stick to ‘cd’ and also extensive use of ctrl-r (preferably with fzf)

                                                                        1. 1

                                                                          And then you go to a work mates computer, or su/sudo/SSH and it’s unusable :)

                                                                          1. 1

                                                                            well this is one of the most useful shortcuts in my arsenal. type j <tab> or jump <tab> and it completes all the marked directories. If you get over the initial forget to use it curve it’s amazing and simple (just a folder in your home dir with a bunch of symlinks. and a few helpers to create those.)

                                                                      1. 2

                                                                        I really like protonmail and would use this if I ever needed to but I use mullvad already.

                                                                        1. 2

                                                                          Great work!

                                                                          1. 5

                                                                            Interesting, I’ll give it a go. I know for a fact that people are going to gun it down because it’s electron though.

                                                                            1. 29

                                                                              I mean… it’s a web browser running in a web browser. We’re in, “Yo dawg, I heard you like Chrome tabs, so I put a Chrome tab in your Chrome tab so you can consume memory while you consume memory.”

                                                                              1. 7

                                                                                Fun fact, Servo is currently also like this, the official servo binary only renders one single page, and the GUI is implemented as browser.html. But someone already made a Cocoa based GUI :D

                                                                                1. 2

                                                                                  This is interesting. I’ve been wondering what would happen if a browser were better integrated with the operating system rather than being standalone monoliths. Personally, I don’t like the apps-in-browsers model and would prefer to see services heading back to standalone apps with the browser used mostly for browsing. It would be nice to have things like passwords, messenger accounts, etc. be handled by the operating system. The OS could handle logging into things, and then you could just fire up a single browser window to look up URLs and webpages as needed. Having a lightweight renderer that focuses on quickly rendering a single page would be great for this.

                                                                                  1. 3

                                                                                    That’s what Safari/(Edge|IE)/(Epiphany|Konqueror) are.

                                                                                    1. 1

                                                                                      That was kind of the dream of Nautilus, wasn’t it? But if electron seems sluggish today, you can imagine how well this played out in 2001.

                                                                                      1. 2

                                                                                        The dream of the browser for the web and files was realized by Windows 98. Turns out it wasn’t a great idea after all.

                                                                                  2. 1

                                                                                    I guess the alternative is stripping down the Chromium or Firefox’s source, or write an interface around either of their engines. If you think of it as Chromium with rebuilt UI, I guess Electron makes a little sense as it’s already done the stripping and documenting/exposing how to build on what’s left.

                                                                                  3. 12

                                                                                    It doesn’t help that it claims that it is fast without any evidence towards that claim.

                                                                                  1. 1

                                                                                    Unfortunately nobody I know uses Telegram so I’m stuck with whatsapp.

                                                                                    1. 1

                                                                                      I was interested in Dart for a while but honestly I would rather just use Python or JS.

                                                                                      1. 2

                                                                                        thanks @jcs. o7

                                                                                        1. 8

                                                                                          Here’s a plug for the thing I’m working on. If you want a VPN in less than 4k lines of code – small enough that you can read and understand it in a single sitting – then you might want to checkout WireGuard. It’s a relatively new project, but considerably less scary than big behemoths like OpenVPN or IPsec.

                                                                                          1. 1

                                                                                            Would I be able to use wireguard with something like Mullvad?

                                                                                            1. 1

                                                                                              Yes. If you Google those two keywords, you’ll find what you’re looking for.

                                                                                              1. 1

                                                                                                \o/

                                                                                          1. 1

                                                                                            Hmm, why is this tagged unix? I assumed that OPy referred to ops-related things. This is a post about an alternative Python compiler.

                                                                                            1. 5

                                                                                              Because the “Oil Shell” is a new unix shell being built. Read the homepage.

                                                                                            1. 22

                                                                                              What I didn’t like about Vim was that a good number of plugins always felt like a hack…. Another popular plugin is Syntastic. I absolutely hate the way it displays the errors. It is not a smooth transition from “no error” to “error”. Not much to say here, it just looks awful, yet it is highly recommended.

                                                                                              Dedicated Vim user for about 8 years here. I feel this pain. My setup feels hacky.

                                                                                              Yet I’m not willing to lose the power of modal editing + command line integration (see my post, “Making Vim, Unix and Ruby sing harmony”, and I doubt any emulation will satisfy me.

                                                                                              Kakoune is the first editor I’ve seen that looks like it might be my future tool of choice; the author is like “I see why modal editing and Unix integration are great and I intend to do them better than Vim.” If the usability is also better, I’m sold. I’m just waiting to find the time and an easy enough onramp to start learning it.

                                                                                              1. 10

                                                                                                I tried Kakoune for a week around New Year’s. And it was surprising how deep I got into it. In the end, though, I found myself deeply incompatible with it.

                                                                                                • In spite of being modal, Kakoune’s shortcuts started to feel like Emacs. Default chords like alt-C would require pressing three keys at once.

                                                                                                • Kakoune’s scripting language started to feel just as hacky as Vim, albeit in different ways. More minimal, but a lot more nested-string escaping. If I was willing to put up with chords, why not just use Emacs and get a real language to script my editor with?

                                                                                                • Critical keyboard shortcuts had no equivalent. { and } for navigating by paragraph. , was impossible to make work as I expected. X for deleting a character backwards. You can’t just hit w to skip ahead one word and then hit i to start typing. You have to hit w, then ; to reset the selection before you can start inserting. Just felt weird.

                                                                                                • Kakoune has no window management. Instead you’re supposed to just use tmux. That felt nice and orthogonal in theory. In the spirit of Unix. But in practice it turned out to be not so nice. For example, I could open multiple windows in tmux panes, but Kakoune would always be in the directory I first started it in, rather than the directory I opened the current window at. There was no sequence of autocommands and scripting that would allow windows to have their own directories like Vim has. I think the same idea may apply to Rob Pike’s criticism of the proliferation of commandline flags in Unix: it’s easy to criticize Unix on principle, but when you get into the details it is perhaps not so bad.

                                                                                                Perhaps I was just too programmed by Vim. I don’t know. Interesting, mind-broadening experience for sure. The lesson I was left with was something fundamental about software: we still don’t know how to unbundle the timeless essence of a piece of software (in the case of Kakoune, the object-verb grammar and multiple cursors) from the slow accretion of more arbitrary design choices like how you navigate by paragraph or the implementation of f and ;. Back in the git history of Kakoune is a sweet spot with a more compatible and elegant text editor. It may have missed some features, but it didn’t have conflicting features to a human being on Earth used to Vim.

                                                                                                1. 9

                                                                                                  Vis is another option that I’ve been eyeing, along side Edit.

                                                                                                  1. 1

                                                                                                    micro is more nano like but it’s still a pretty good editor.

                                                                                                  2. 8

                                                                                                    I second the Kakoune recommendation. It lacks plugins but is very promising. I missed CtrlP for example when I tried it.

                                                                                                    1. 8

                                                                                                      Have you tried spacemacs out? it’s really a much better at customizing the editor than vim but still has a very well done version of vim emulation. I consider myself to be a power user of vim and spacemacs is very compelling if you don’t want the hacky feel. magit is a phenomenal package(shows just what a decent programming language inside the editor gets you) and changes the way I look at version control.

                                                                                                      1. 3

                                                                                                        I had this exact same experience. Initially I went to emacs (and I still love bits of emacs - org-mode is outstanding) but for day to day editing I’ve transitioned to Visual Studio Code.

                                                                                                        It’s very featureful and its extension language is Javascript, which I’m finding much easier to wrap my head around.

                                                                                                        1. 2

                                                                                                          I love kakoune too, I think it’s heading in a very interesting direction. The always-on “visual mode” is great, and the use of standard UNIX tools to extend the editor makes a lot of sense. I implemented a simple “netrw”-style extension with little effort and calls to ls.

                                                                                                          One thing that bothers me though is the lack of a simple C key to replace until the end of the line, as in Vim. I use this very often, and maybe I just missed something, but it’s just not that quick and easy in kakoune, it would require a custom mapping or something, I believe.