HNHacker News
TopNewBestAskShowJobs

depressedpanda

967 karma · joined July 27, 2017

submissionscomments
depressedpanda··on Using extra Firefox profiles to make my life better
In my experience, just copying an existing profile to a new folder doesn't work -- you're backing up your data, but you're not creating a new profile.

So what I typically do is first create a new profile via Firefox' UI, then I just copy the data of the profile I want to clone into the corresponding data folder of the profile I just created.

depressedpanda··on 500 Lines or Less (2016)
Nice. I borrowed AOSA Volume 2 from a friend a couple of years back.

Too bad the web page performs so poorly on mobile, when two small CSS tweaks would make it fully responsive:

1. Replace `width: 68rem` with `max-width: 68rem` on the body element;

2. Make the flex basis on the table container pixel rather than percentage based.

depressedpanda··on Passive Solar Water Desalination
For the international audience who don't use freedom units, 6.4 (US) gallons is ~24.2 liters.
depressedpanda··on Fairphone 5 review: The most uncompromising repairable phone yet
> Before anyone says: yes, I have cleaned the USB port out. Cutting a triangle off a credit card and using the corner worked the best in my experience.

Are you sure you got all of the lint out?

I'm asking, because I thought I had, and my phone still wouldn't charge reliably.

As a hail Mary (I was ready to buy a new phone anyway) I tried a thin metal needle. I couldn't believe the amount of gunk I got out of the port.

In my attempts to get it charging I had compressed the lint so hard that none of the other softer tools I'd tried before could get it out.

While I didn't try your method specifically, I'm quite sure a credit card would've be too thick and soft to do it.

depressedpanda··on Show HN: Unity like game editor running in pure WASM
I see. Thank you for the explanation!
depressedpanda··on Show HN: Unity like game editor running in pure WASM
Interesting. What are the use cases for being able to do this?
depressedpanda··on TypeScript NPM Packages Done Right
Yeah, I stopped reading after that. A browser that only "supports up to es2015" is not a "modern browser".
depressedpanda··on Valve is a wonderful upstream contributor to Linux and the open-source community
Ever consider a Steam Deck?

I'm a frontend dev happily using Linux, btw. I have no use for Adobe Suite, though. Figma is enough, and runs on any OS with a web browser. I agree font rendering is a bit different, but not so much that it's ever been a problem in my experience.

depressedpanda··on Valve is a wonderful upstream contributor to Linux and the open-source community
Who? Do you have any links?
depressedpanda··on Natural beekeepers are the radical dissenters of apiculture
Like it or not predators hunting prey is part of any natural ecosystem. A necessary part.

I don't know what it's like where you are from, but in general I'd say hunters care a lot more about, and do more for, nature in their local ecosystem than your average city dwelling vegan hipster.

depressedpanda··on The ideal viewport doesn't exist
If a website allows you to throw away a lot of work by accidentally refreshing the page, it's poorly written. There are multiple ways to deal with this: a warning, a confirmation prompt, storing data in sessionStorage, etc.
depressedpanda··on The ideal viewport doesn't exist
Another comment suggested you try to appeal to empathy. It might work, it might not.

If it doesn't you can instead appeal to the bottom line. Tell 'em that they might get targeted by an accessibility troll: https://www.wrightlawgroup.com/blog/attack-of-the-ada-trolls

As far as trolls go, I consider these fairly benign, as their behavior actually promotes something good; we got hit with such a lawsuit, and all of a sudden a11y became a big thing as our CEO didn't want to give a dime to those 'greedy assholes'.

depressedpanda··on The ideal viewport doesn't exist
> I'd pinch to zoom in...but some moron front-end dev has adopted the beyond-bone-headed mentality of "removing features is a feature!" and makes their site tell the browser to not allow zooming because...why? Someone please, tell me why.

For sites that have no business disabling zoom: no idea, and it annoys me too. I just chalk it up to dev, designer and/or managment incompetence, close the tab and never return again.

/Moron frontend dev

depressedpanda··on The ideal viewport doesn't exist
> Then there's the progressive web app (PWA) debacle, where users don't even know what a PWA is and don't know that they can pin sites to their home-screen, simulating an app.

Users don't need to know what a PWA is. Thereason users don't know that they can be 'installed' is because they're on iOS, where Apple has been effectively hamstringing them in favor of the Apple App Store. There is a way to install PWAs on iOS, but it's quite hidden.

depressedpanda··on The ideal viewport doesn't exist
For any aspiring frontend devs that might not know better: they're talking about user agent string parsing.

Please don't do this. There's a reason it's an unpopular approach.

depressedpanda··on Flatpak is not the future (2021)
In what way is Flatpak being forced on you?
depressedpanda··on The ideal viewport doesn't exist
While I suppose breakpoints might still have some use cases, I believe an overwhelming amount of the stuff we currently use them for can be better and more fluidly accomplished with container queries.

The example you give of a sidebar collapse with a menu button replacement can easily be accomplished with a container query on the wrapping box, no?

I'm honestly curious about a use case that a media query breakpoint can handle, but which a container query can't.

depressedpanda··on The ideal viewport doesn't exist
> setting breakpoints allows some sanity in the build and testing process otherwise you have an infinite scope for issues which of course would be pretty lucrative for a boutique agency.

Honestly, now that container queries are available, I see very little use for breakpoints. Container queries allow for easy reuse of components, and a truly fluid and responsive design.

depressedpanda··on Shouldn't distant objects appear magnified?
If light acted instantaneously you would have to calculate the effect of it's rays everywhere all at once, which I think is quite expensive given how vast space is.

However, since the speed of light is miniscule compared to the size of the universe you can ignore all but the most local interactions, and just schedule a computation sometime in the future when you know that the light vector will interact with something.

While instant calculations would perhaps make for a simpler system conceptually, the speed limit and locality principle ensures that less processing power is needed (at the cost of a lot of memory).

depressedpanda··on Firefox finally outperforming Google Chrome in SunSpider
I understood it, without even thinking about it. In my opinion it's more elegant than the real syntax, and I didn't even realize it wasn't real JavaScript until this comment thread made me look again.
depressedpanda··on We need scientific dissidents
Yes.

I used to get really bad colds 3-5 times a year, for as long back as I can remember (afaik, I never got Covid, though). Now, it's been longer than a year since I last got sick.

However, I only wore a mask when forced to, as mask usage was generally only recommended and almost never mandatory during the pandemic.

Rather than masks, I think the most likely reason is that people who get sick nowadays are much more likely to stay at home, and probably also that everyone washes their hands more often.

depressedpanda··on We need scientific dissidents
The answer is right there in the quote you decided to cut short for some reason.

Culturally, Swedes trust their government a lot more than people do in other countries.

depressedpanda··on RFC 9446 Reflections on Ten Years Past the Snowden Revelations
Why would the UK inform Sweden?

The suspiciously flimsy case had been dropped already.

depressedpanda··on RFC 9446 Reflections on Ten Years Past the Snowden Revelations
I'm sorry, but that's not comparable. Whatever Snowden might have done wrong is nothing compared to the shit he exposed.
depressedpanda··on I'm 17 and wrote this guide on how CPUs run programs
You both have a point.

"Cutesy" language may act as a distraction to the reader, and -- like anything when overdone -- can be detrimental to the text. Kill your darlings and all that.

_However_, if something isn't supposed to be a terse reference manual, it will convey a lighter tone and seem more approachable to most people, if used judiciously.

I don't think anyone has enough experience at 17 to know where to strike the right balance, so overdoing it (and being called out for it) is just part of the journey of becoming a better writer while finding your own personal style and tone.

depressedpanda··on A list of recent hostile moves by Google's Chrome team
If your point is that you can run a Webkit-based browser branded as Firefox, you are correct.

However, it's not using Gecko, so it's not actually Firefox. It's a browser whose web capabilities are controlled by Apple rather than Mozilla.

depressedpanda··on Network protocols for anyone who knows a programming language
I'm just happy they didn't write "from whence". I know it's accepted usage, but it just irks me when I see it as "from" is entirely redundant.
depressedpanda··on Coming Soon: Fedora for Apple Silicon Macs
I don't know how it works for Macs, but on Fedora Silverblue you can definitely disable anything you consider to be an "invasive service". Also, if the immutable root comes with software you don't want, you can uninstall it by adding a layer to the root image.
depressedpanda··on 6 days to change 1 line of code (2015)
It wasn't nit picky as I wouldn't have understood what the author meant before the reviewers came in and suggested improvements.
depressedpanda··on Functions and algorithms implemented purely with TypeScript's type system
> ... the way I see it is that if your JS code is bad, then you may get value out of TS, but if your JS code is already good, you won't get any value out of TS.

You might not get any value from the typing when writing the code, but the poor sod tasked with maintaining it two years later definitely will.

Also, the added types and compile time check will greatly benefit anyone trying to perform all but the most trivial of code refactoring.

Typescript adds some inertia initially, and you are correct in that it will allow inexperienced developers getting away with writing overly complex code, but it's definitely worth it for any code base larger than a couple thousand LoC.

← PreviousPage 3 of 13Next →