1. 2

    7 years? god damn

      1. 1

        A linode + namecheap and nginx. Not really much else to say.

          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. 7

              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.