HN user

fatboy

161 karma
Posts5
Comments95
View on HN

When I was a kid I worked in a double glazing factory. Some of the old timers demonstrated just how hard it is to break a piece of toughened glass to me by whacking one with a bit of wood right in the middle of the pane, really really hard. Nothing happened. Then the dude tapped it really quite gently with a glass breaker in the corner (where it can't flex as much he said) and the whole thing exploded into those little cubes you see on the ground in dodgy car parks.

Forklift is the one I settled on as well. I had the experience you describe with Path Finder before and finally I gave up.

Forklift has a couple of things that annoy me daily though. Often I will have to refresh a pane to see a file I know has recently been added. Eg in downloads. I may even have navigated to downloads after the download finished and it's still not visible until I refresh.

The other is that it doesn't reuse existing tabs if I "reveal in finder" or whatever, so after a while there's a million tabs open, most pointing to the same directory.

I have a (badly made) variant of kill sticky that I use on my phone. It kills sticky, then messes with any code blocks it finds to make them full width and use a smaller font.

It drives me mad when I'm reading articles with embedded code blocks where the code has less room than the prose and sometimes a bigger font!

It works well on eg this page (https://www.programiz.com/swift-programming/inheritance), but maybe someone that knows what they're doing can make it work on GitHub. It'd be nice to not see those line numbers taking up half the width.

I'm on my phone so I've only the bookmarklet to hand:

   javascript:(function()%7Bvar%20i%3Bvar%20b%3Ddocument.querySelectorAll(%22body%20*%22)%3Bfor(i%3D0%3Bi%3Cb.length%3Bi%2B%2B)%7Bvar%20el%3Db%5Bi%5D%3Bif(getComputedStyle(el).position.match(%2Ffixed%7Csticky%2Fgi))%7Bel.parentNode.removeChild(el)%3B%7D%7Dconst%20c%3Ddocument.querySelectorAll(%22html%22)%3Bfor(i%3D0%3Bi%3Cc.length%3Bi%2B%2B)%7Bif(%22hidden%22%3D%3D%3DgetComputedStyle(c%5Bi%5D).overflow)%7Bc%5Bi%5D.style.setProperty('overflow'%2C%22scroll%22%2C%22important%22)%3B%7D%7D%7D)()%3B(function()%7Bvar%20i%2Cj%2Cb%3Ddocument.querySelectorAll(%22pre%22)%3Bfunction%20setPropertiesOuter(el)%7Bel.style.setProperty('margin-left'%2C%22calc(-50vw%20%2B%2050%25)%22%2C%22important%22)%3Bel.style.setProperty('margin-right'%2C%22calc(-50vw%20%2B%2050%25)%22%2C%22important%22)%3Bel.style.setProperty('font-size'%2C%2211px%22%2C%22important%22)%3Bel.style.setProperty('text-indent'%2C%220%22%2C%22important%22)%3Bel.style.setProperty('border-left-width'%2C%220%22%2C%22important%22)%3Bel.style.setProperty('border-right-width'%2C%220%22%2C%22important%22)%3Bel.style.setProperty('border-radius'%2C%220%22%2C%22important%22)%3Bel.style.setProperty('padding'%2C%2210px%22%2C%22important%22)%3Bel.style.setProperty('width'%2C%22100vw%22%2C%22important%22)%3Bel.style.setProperty('max-width'%2C%22100vw%22%2C%22important%22)%3B%7Dfunction%20setPropertiesInner(el)%7Bel.style.setProperty('font-size'%2C%2211px%22%2C%22important%22)%3Bel.style.setProperty('text-indent'%2C%220%22%2C%22important%22)%7Dfor(i%3D0%3Bi%3Cb.length%3Bi%2B%2B)%7Bconst%20el%3Db%5Bi%5D%3BsetPropertiesOuter(el)%3Bvar%20descendants%3Del.querySelectorAll(%22*%22)%3Bfor(j%3D0%3Bj%3Cdescendants.length%3Bj%2B%2B)%7BsetPropertiesInner(descendants%5Bj%5D)%7D%7D%7D)()

I remember hearing an interview with Richard Hipp where he said he pronounced it as you do ("rhymes with kryptonite" I think he may have said, or perhaps "like a mineral").

I'd always pronounced it in my head S-Q-L-Lite up until that point, but I much prefer this other way that I'd never considered. It rolls off the tongue easier and adds a bit of fancy.

In VSCode if you do super-shift-f for find-in-project, at the top of the results pane, just right of where it's marked "x results in y files" there's a link button titled "Open in editor" which I believe does what you're describing. I'd actually forgotten about it until I read your comment so I'll start using it again now.

Maybe you already know this, but when I used to use sublime I'd save those dozens of files with cmd/ctrl-alt-s (save all open files). I think this is a universal-ish command for well-behaved applications on both windows and mac.

I miss sublime for how slick the ui feels, but I abandoned for the same reasons as you.

One place I've seen it used was a lib by a guy called DHoerl for reading images that are too big to fit in memory (this was years ago on iOS).

A very over-simplified and probably a bit incorrect description of what it did was to create a smaller version of the image - one that could fit in memory - by sub sampling every nth pixel, which was addressed via mmap.

It actually dealt with jpegs so I have no idea how that bit worked as they are not bitmaps.

I agree with the sentiment of every response I've read to your comment so far. The agressive tactics, paywall, general sense of sleaze all make me actively avoid following medium links.

But even ignoring all that, medium is the worst place for any article about programming because the code blocks do everything to make it harder to read them. There's no syntax highlighting, the lines wrap and the container the code is in pads the text to make a narrower column than the body of the article.

That's the opposite of what I want. Especially on mobile! It's one of the sites that make me wonder if its developers have ever tried using it.

https://postimg.cc/zbY3jQqc

With both French and English enabled, it sometimes randomly "corrects" the English word "the" to the French word "thé" (meaning "tea" in English), despite every other word so far being English and despite the fact it would make no grammatical sense.

Most infuriating of all though is when it lets you think you've got through the gauntlet of perfectly valid words being replaced with nonsensical ones, only for it to swap out the last _two words_ you've typed!

Htmx in a Nutshell 4 years ago

That is sound advice and I take it to heart. I was mainly wondering if you'd hit any roadblocks whose existence might not have been obvious from the outset?

Htmx in a Nutshell 4 years ago

I've just done a small project using web components. I didn't use the shadow dom at all (please note I have no idea what I'm doing).

This was after reading a single hacker news comment saying not to bother with it, after days of research where everything I read spoke about web components and the shadow dom as if they were inextricably linked.

I didn't want the styles to be encapsulated. I wanted the css to cascade in like it does everywhere else. I don't really see many use cases where you would actually want to style a component from the inside and not have the user of the component be able to style it themselves.

All the blogs I read spoke about exposing a styling api using css variables. But by doing that, are you not going to great lengths to recreate what already exists in the normal dom?

Am I missing the point?

Htmx in a Nutshell 4 years ago

Can you speak of your experience with liveviewjs? I've been looking at it, and htmx, and everything else, over the past few months for a heavily-interactive frontend project I need to start.

I'm an experienced ios dev, but in at the deepens with all this js frontend stuff. There are so many options! The one thing I'm sure of is I don't want to use react.

Yeah a lot of love has gone into that. I like the subtle animations as the caret slides rightwards whilst typing or the "_I_" appears above it when he sets it to italic.

I don't understand what's wrong with breaking changes. Do they not happen in php major versions anyway? Why not fix the parameter ordering and built in function names whilst you're at it? Seems odd to me.

I have five or six Makita 18v batteries and a load of their tools. If they only make new tools with the new battery they are potentially making me quite miffed. If I want the new tool I need also the new batteries and charger. Also I'd need multiple batteries because you can't really only have one.

Personally I'd be happy for that situation because of the big upside, but I can see why a company would not want it.

Plus, the most logical thing to do is not make a new standard, but pick an existing one. But who gets to be the golden brand whose battery system remains unchanged?

I would love it to happen but I can't see it happening for a while.

That's not really so surprising though. Any brand that already has a system would be penalising existing customers by changing, we're not talking usb cables here.

Good on Metabo for doing it, and good on Mafell for signing up to use them. The smaller brands it's a no-brainer I guess.

I think that's a bit trickier. If Makita or whoever was forced to change their batteries, anyone with a big catalogue of their tools would be pretty miffed.

Also, I've mentioned this on hn before, there is already the Cordless Alliance, which does exactly this.

Sadly, there's only a couple of useful-in-a-mainstream-sense brands in there: Mafell and Metabo. The rest are very niche.