HNHacker News
TopNewBestAskShowJobs

mkdirp

1,232 karma · joined December 17, 2021

submissionscomments
mkdirp··on BBC licence fee to be abolished in 2027 and funding frozen
> especially its partisan news reporting on the current government

I just want to say that the BBC has had partisan claims by people from all the aisles. The BBC tends to be more left leaning and progressive with a lot of its coverage, I'm assuming that's mostly because journalists tend to be, however there have been certain "coincidences" when it comes to Conservative coverage.

I don't know whether or not they're partisan, but I feel when both left and right leaning people call the BBC partisan, it feels like they're less likely to be partisan.

mkdirp··on Switching from macOS to Pop_OS
Terminal is the only thing that maps ctrl+shift+c/v to copy/paste because ctrl+c/v conflicts with signals. I've never come across any other program that maps something that isn't ctrl+c/v to copy/paste.

MacOS is able to keep this consistent because ctrl+c/v isn't mapped to copy/paste, and instead command+c/v is. If you really want, Linux is perfectly capable of mapping Super+c/v to copy/paste. You would probably only need to do this in your terminal emulator and your DE.

mkdirp··on Why I use a debugger
Logging is not debugging/print statements.

You also wouldn't generally be debugging a request from random clients. You'd generally be debugging in your local dev environment.

mkdirp··on Woob: Web Outside of Browsers
Really? You ever tried automating your own data from e.g. your bank? Cos I have, and it's a lot more annoying that it should be.

Woob does a lot more than just banks. It allows you to get any of your data. Adding additional providers is piss easy too.

mkdirp··on Why I use a debugger
You'd think. But I still see discussions in JavaScript and PHP related threads where people swear by adding `console.log`/`var_dump` statements to their code over using the debugger.

I've seen quite a few threads on r/php where individuals introduce a newer, supposedly better, library that can be used instead of `var_dump`, and there's always the inevitable "why not use the debugger?" to which many reply "because it's hard to set up" or "var_dump is better" or something silly to that effect.

mkdirp··on Exploring System76's New Rust Based Desktop Environment
Right. And so Pop!_OS gives you a decent tiling window manager, with sane defaults, without having to spend hours on customising your configuration. What's more, the tiling they provide is an optional feature. You can enable and disable it at any time without messing with you config for hours.
mkdirp··on Show HN: Bang Bookmarks – replicate DuckDuckGo bangs in Firefox using Keymarks
Didn't actually think of that. I'd forgotten that was an option, however, I've never liked the separate search box. It just feels like a waste of space. I don't want to think about whether I should press Ctrl+L or Ctrl+K. Half of the time I don't yet know whether I want to search or go to a site.
mkdirp··on Show HN: Bang Bookmarks – replicate DuckDuckGo bangs in Firefox using Keymarks
One of the big advantages of DDG's bangs is that you don't have to re-type/paste the whole search query. Instead, you click the search bar in DDG, type `<space>!g<enter>`. That's vastly simpler and faster than re-typing the query, then `<space>!g<enter>`.

One of the thing that I miss from Chrome from a while ago is the integration with Google. I remember that Chrome would show the query in the omnibar (on mobile anyway) when doing a search on Google. So if you needed to make changes to the query, you can continue doing so within the omnibar.

I think if we can get something like that Chrome feature in Firefox but for DDG (or maybe any search engine?), using Firefox's smart keywords feature would be a lot simpler, and you can bypass the extra request to DDG that it would otherwise take.

mkdirp··on Ask HN: Career change for elderly UK ex-convict?
> > I guess I'll never get a job coding due to ageism

> I wouldn't assume that.

I can't add a lot to this discussion, but my colleague, who is in his 50s, got hired around the same time as me here in the UK.

mkdirp··on LastPass appears to be holding users' passwords hostage
> basically no way to run a managed system with user accounts for their personal things and work entires that I could control or deploy.

Could you elaborate on this?

I'm not an enterprise user, however, as a happy commercial Bitwarden user, I was annoyed that the company I worked for moved to LastPass relatively recently. I'd love to know what may have made them choose LP over Bitwarden.

mkdirp··on Microsoft posts its own teardown and repair video for the Surface Laptop SE
This is great, but I just want to give a word of caution.

Just because they've posted this, we shouldn't loosen the pressure valve on them. For all we know this could be just "let's post a single video so people will stop complaining to us that we're not repair-friendly". They might climb back into their anti-repair chairs and recline again after this. We need to keep the flame under their feet until repairability becomes part of their DNA, and even then we'll need to ensure they stay like that.

mkdirp··on Student photographs people with hidden spy cam in the 1890s (2018)
Previous discussion: https://news.ycombinator.com/item?id=16049954

I do wonder if this would have been considered creepy back then. Assuming such cameras weren't as prevalent as they are today, it certainly feels like people would have been creeped out if they'd found out about this.

Anyway, love the pictures! I'm glad the student decided to be creepy.

mkdirp··on Filling in some gaps in the story of Space Cadet Pinball on 64-bit Windows
The original devs are aware, and have unofficially suggested they'd be willing to help[0].

[0] https://news.ycombinator.com/item?id=28861353

mkdirp··on Filling in some gaps in the story of Space Cadet Pinball on 64-bit Windows
According to David Stafford, one of the original developers, Microsoft may still have license to publish it as part of Windows, though the IP still belongs to EA[0]. The whole thread linked below contains a lot of info from the original devs of the game.

[0] https://news.ycombinator.com/item?id=28861353

mkdirp··on Shell Builtin ‘eval’
Heh. I overlooked that. I've updated my comment. It's still possible without eval, but with caveats.
mkdirp··on Shell Builtin ‘eval’
You can use arrays.

    $ ls -la "foo bar"
    -rw------- 1 u0_a298 u0_a298 6 Jan 10 00:22 'foo bar'
    $ cmd=(cat "foo bar")
    $ "${cmd[@]}"
    hello
Edit, since someone pointed out you the article is using dash, something I overlooked, you can still avoid eval by using set to overload the script args:

    $ set -- cat "foo bar"
    $ "$@"
    hello
Not sure how this would work if you still need the values of the current args. I don't think there is a way set a variable to be the current "$@" to be used later. However, if you don't need the current args any more, this is a possible solution to avoid eval.
mkdirp··on Is Bitcoin Down or Just Me?
> The Bitcoin network has been functional for %99.98 of the time since its inception on January 3, 2009 at 02:54:25 GMT

Seems weird. What was that 0.02% when it was down? I've clearly missed it.

mkdirp··on Why “process substitution” is a late feature in Unix shells
> Can you please cite examples? I've never seen any software do that.

With `gpg --verify` you can specify which file descriptor you want it to output to. I've previously used it to ensure a file is verified by a key that is trusted ultimate. Something that otherwise requires outputting to a file.

Something like this:

    tmpfifo="$(mktemp -u -t gpgverify.XXXXXXXXX)"
    gpg --status-fd 3 --batch --verify "$sigFile" "$file" 3>"$tmpfifo"
    grep -Eq '^\[GNUPG:] TRUST_(ULTIMATE|FULLY)' "$tmpfifo" || exit 1
GPG also has `--passphrase-fd`. Possibly other option too.
mkdirp··on Why “process substitution” is a late feature in Unix shells
> The process ID of the last executed background command in Bash is available as $!.

After a quick search it doesn't seem like this is an option for anything but the last executed background process. So if you have the typical `diff <(left) <(right)`, there is no easy way to get the pid of `<(left)`.

I suppose you could output the pid to a file, and use it from there, though I haven't tested if that would work.

mkdirp··on Inviting another GitHub user to be your successor
> In the spirit of other legacy / succession features, is there an opposite option to prefer the account vanishes from the platform entirely?

Earlier this year maintainer of MIT licensed zinit* somewhat disappeared from the internet. Issues weren't being addressed/replied to etc. This of course is fine, they're not expected to provide support or continue maintaining the project if they don't want to. However, in the past few months, the maintainer decided to remove all repos and organisations relating to zinit, causing everyone's profiles to suddenly stop working. People weren't able to initialise their dot files on a new machines. There was no backups nothing. I happened to do update my dot files to the latest version of all the plugins hours after the deletion of the repos, and my whole profile completely broke. I sat there for a good few hours trying to recover. Luckily git is graceful.

Unless there's a method to archive your public OSS repos, removing your profile means all your code will be gone too. At best that's an inconvenience to hobbyists, and at worst, it can break production systems.

In the case of zinit, luckily the community came together and were able to scrape back the latest code based on the local git repos of individuals. I think there are still some repos that have to be recovered.

* zinit is a zsh profile manager, allows for managing binaries, plugins, and other things.

mkdirp··on Darling – Run Mac apps on Linux
Lots of questions around GUI apps. As someone pointed out, GUI apps have been "almost" working for years. Darling looks great but it hasn't gotten near as much love as Wine has gotten.

I've been keeping an eye on it, and will continue to keep an eye it, and I've noticed the development is very slow. At the rate it's going, it'll be years before it'll be a viable solution like Wine is. I hope visibility for it will increase so that the current devs get some more help on this.

I'd still like to give thanks to the devs as this is a very ambitious project. I'm sure people used to say "it'll be years before it'll be a viable solution" when Wine was in its infancy.

Having Linux run iOS, macOS, Android, and Windows applications running would be nothing less than mind-boggling, and would finally get people to stop yelling that nothing runs on Linux.

mkdirp··on Ruby's Email Address Regexp
Heh, I actually meant `>=`. But as others have pointed out, that still excludes 2 letter users. Really it should be `>= 0`.
mkdirp··on Ruby's Email Address Regexp
Never mind the regex, `email.indexOf("@") > 2` does the trick and faster if you happen to need to check many emails. All websites these days require verification of emails (regardless of whether or not it's necessary), and if that's not enough validation, I don't know what is!
mkdirp··on Android in Docker without QEMU/emulator
This isn't running on QEMU.
mkdirp··on Android in Docker without QEMU/emulator
This is by design. The kernel still runs the processes inside the container. If you namespace the user running `ps`, it will not be able to see the container processes. The only reason you're seeing them is because you're in the default (root?) namespace.

The container on the other hand cannot see the host's processes or other things. At least not without an exploit.

mkdirp··on Android in Docker without QEMU/emulator
This one specifically seems to run Android in the Linux Kernel using the usual suspects of container tech. It should have next to zero performance impact so it will definitely have better performance compared to the default Android emulator considering that's using qemu, even if it's qemu-kvm.

Whether it's as reliable as running a VM, is something that'll need to be tested. Personally I got an error when trying to exit out of the shell (and thus was unable to exit), something I've never seen in the VM version of Android.

mkdirp··on 4 tips for GitHub Actions usability (+2 debugging)
> And no, having that step in there with
mkdirp··on 4 tips for GitHub Actions usability (+2 debugging)
Great that there is an ssh mechanism. I never realised even if it's a third party. Rebuild with ssh has been invaluable for me circle ci. I wish github would add it as a native feature. Having a restart with ssh is vastly simpler than adding the step, then commit+push etc. And no having that syrup in there with `if: failure()` isn't a great solution.
mkdirp··on Dura is a background process that watches your Git repositories
IntelliJ does it, and you can even look at the local history and go back as far as you like.
mkdirp··on web0 manifesto
Really? I've personally yet to see or hear of a valid use-case that isn't overpriced jpegs. I'd love to know what those valid use cases are.
← PreviousPage 5 of 6Next →