HNHacker News
TopNewBestAskShowJobs

stonewareslord

256 karma · joined January 30, 2017

submissionscomments
stonewareslord··on iMac G4 to M1 conversion process
You can install dualboot voidlinux and run pretty much anything ppc, so yes
stonewareslord··on Nvidia hackers leak 190GB of sensitive data from Samsung
Leaking source doesn't make the code open source. It's still closed source
stonewareslord··on Mojang to Require a Microsoft Account to Play Minecraft
To be fair, it sounds like you didn't the email it was sent to, the PayPal id (receipt), and it was never chased in as an account... What does support even have to go off of then?
stonewareslord··on ‘Zero-click’ hacks are growing in popularity
A one-click hack can still be a hack. Clicking a link should not be able to break out of a sandbox, run arbitrary code, etc and should still be considered a hack.

I think both should be considered hacks, but zero click is much scarier, so it makes sense to distinguish them

stonewareslord··on A new programming language for high-performance computers
Not fast in which sense? HPC? Or single/multithredded processing on one machine?
stonewareslord··on How to pick a good monitor for software development
> Quite a lot of us at least overlap with that. Basically all FE web or GUI dev, any end-user image/video processing, pretty much anything that puts graphics on a screen that aren’t UI SDK builtins.

I completely disagree, except for high end picture or video production. I have used way too many websites that clearly only work well on large, nice displays. Most end users of anything will not have the same high quality expensive monitor/computer that's being suggested.

I remember reading some article about someone who used an old i3 processor on a 4:3 laptop screen or something, knowing that if his code is slow for him, it's slow for his users. I think this mindset is genius and should be more common. Take MS Teams for example. It's like their devs have only ever tested on a gigabit link M1 and it's painful for the other 99.9% of people who use it.

So if you want to get a nice setup for yourself, then you should. But you should not do it for your clients, and if you do, you should understand your users will not have machines like yours.

stonewareslord··on Ask HN: Software you hate but can't replace?
I just recently did this. The radio was $89 and had the fewest features I could find: CD, USB, aux, am/FM and NO Bluetooth or touch screen which exactly fit my requirements. It's replaced my terrible touchscreen system and given me 2 single din slots of storage space. Replacement was relatively easy and as long as you have a headphone jack on your phone, there are no issues. Just need a soldering iron, removal kit, car-specific mounting kit, and model-specific wiring harness.

Of course, it's much easier to find one with Bluetooth; there are tons of other ones with "smart" features that are the same price.

stonewareslord··on Kakoune Code Editor
That's exactly what I used to say before I tried kak. I had been using vim for about 6 years and thought it sounded like vim with multi select and wasn't impressed.

The reality is, you change the way you think about editing. It took about a week away from vim but eventually I could see the selections in realtime. Not as a gimmick like with multicursor vim, but as the basis of everything. I have been using it exclusively for 2 years and haven't looked back once. Single-cursor editing is about the same speed, but selection oriented editing blows vim out of the water with anything with 2 or more edits.

It's like if a notepad user said "what's the point of vim? I can just use a mouse and arrow keys??" Vim changes the way you see things - you see a space separated word so you use W or a line with whitespace at the beginning so you use I. It's hard to explain other than you change your understanding of editing.

Edit: that gimmick comment might annoy some people. I used to use it and love it. But the reality is, it was just an add-on to an already-grest editor. After my plugin phase of vim, I realised it didn't really add much at all. So 'gimmick' is probably too harsh

stonewareslord··on Ask HN: How do I protect myself against SIM swap attacks?
TOTP/HOTP codes are defined by an algorithm (sha1/md5/...), secret (A826EF8...), and number of digits (I usually see 6 digit codes). TOTP additionally takes time period (30 second codes) and time (current time which maps to some 30 second block) as a parameter and HOTP takes a counter as a parameter. All of these parameters go into the function to generate the numbers as a result.

If you have ever set one of these up with a QR code, that QR scans to something like: otpauth://totp/ACME%20Co:john.doe@email.com?secret=HXDMVJECJJWSRB3HWIZR4IFUGFTMXBOZ&issuer=ACME%20Co&algorithm=SHA1&digits=6&period=30 (From: https://github.com/google/google-authenticator/wiki/Key-Uri-...). Notice all parameters I mentioned above are present, as well as a user friendly account name.

So to directly answer your question: a backup would in some way contain all the parameters above, possibly in that otpauth:// format, but could be json or something else.

I would not consider Authy to be a trustworthy backup. I assume they are storing these secrets for you and transferring them to other computers at your request. If you can't see the secret, you can't switch to a different app. (Take this last paragraph with a grain of salt, I don't know much about authy but it sounds like trouble. I use FreeOTP and other open source OTP apps).

stonewareslord··on Japan HP accidentally deleted 77TB data in Kyoto U. supercomputing system
I disagree. You can write shell scripts just fine and always set -euo pipefail

* I'm not sure what you mean by four PATHs, but if you really mean to be using unset variables for them, you should be using " ${V-}" or "${V:-}" syntax which does not fail. But again I don't know why you would do this other than maybe [[ "${1-}" ]]

* Variable arguments are still trivial with $#. Check (($#>3)), use while (($#>0)), etc

I also disagree that this is unproductive. With minor modifications/(adding :- or -), you can prevent a whole class of bugs (undefined variables). This woukd have prevent real-world issues such as in the post here as well as Steam when it wiped home directories since it ran (not sure the exact syntax) rm -rf $STEAMROOT/* with an unset variable

stonewareslord··on Quick and dirty way to rip an eBook from Android
Additionally, some PDFs (like textbooks) insert intentionally mangled embedded text to prevent copying/pasting. You can rasterize them and push them through pdfsandwich/ocrmypdf to wipe these hidden layers and re-ocr them.

Haven't done it in a while, but looks like this should work: https://askubuntu.com/a/845119

Obviously replace convert with mogrify ./* after backing them up

stonewareslord··on Quick and dirty way to rip an eBook from Android
Yeah it's a shame. Android allows for a lot of cool apps that have access to control or record other apps. I assume FLAG_SECURE was added for banking apps and the like (it's on for my banking apps), so it's a great addition.

If Android really cared about its users, all it would have to do is permit user-prompted screenshots and screen recordings but still block other app access. I can't think of a time where I'd want my own phone preventing me from screenshotting, but I can see the use case for general screen access prevention.

I don't personally know a root-obly way to disable this, but xposed has the disable_flag_secure module that I'm weary of using because it removes the flag everywhere.

stonewareslord··on Display-switch: Turn a $30 USB switch into a full-featured multi-monitor KVM
You have to configure the server by adding the clients screen to the left/right of yours. Also, I always use IP Address of the server on the client.
stonewareslord··on I faked tons of Covid passes – “Weak Key Cryptography in real world”
The real question is why use 512 bit RSA when you can use 2048+?
stonewareslord··on Android and iOS data collection
> It's a completely opaque system, 0% privacy should be assumed by default.

I really dislike this framing and I could not disagree more. Android is open source does that mean it is also zero percent privacy? What about the Anom phone in recent news? If all three are zero percent privacy then would they not be equally private? iPhone is more private than Android as there's much less data exfiltration and the Anom phone is clearly less private than both. I love open source, but saying any closed source system is zero percent private is not helpful.

stonewareslord··on Show HN: Go playground powered by WASM that runs in the browser
I use a script for this. Something like:

    #!/usr/bin/env bash
    {
      find . -name "*.go" -print
      echo package.json
    } | entr bash -c '
    set -euxo pipefail
    clear
    go fmt
    clear
    go build
    :
    '
You can make it fancier like adding cd into "${BASH_SOURCE[0]%/*}", etc
stonewareslord··on Ask HN: Is anyone monitoring popular apps to check if they're listening?
> Nothing goes back to the cloud

What is your source on this? Every recognizable song is surely not stored on-device so something must be uploaded.

stonewareslord··on No More Medium – Build Your Own Site (2019)
> Please stop using Medium > Switch to Hugo and Netlify (https //netlify com/?utm_source=nomedium&utm_medium=web&utm_campaign=nomedium)

I really wish people would disclose when they're profiting from a link click. Am I misunderstanding something or is this website profiting in some way here? There's no referral code but it has a utm source/campaign

stonewareslord··on Absorption of 5G Radiation in Brain Tissue
> collects and stores road data in the cloud for analysis and retrieval at a later date

This sounds terrible for a lot of other reasons, but anyway. It sounds like they want to rely on collected data about roads which is great, but cars still have to have safety measures for pedestrians/unexpected obstacles like trucks or new road issues.

5G would improve this but I still don't see how it's necessary. Even now it sounds like it's collecting data and uploading it on WiFi or something later. I'd be surprised if it was too much data for 4G.

stonewareslord··on I want a better shell (2019)
Like some other commenters here, I don't think I've found any repetitive tasks that aren't scriptable. Aliases and functions handle every one of my use cases and they probably would handle OPs as well.

For example, he could install moeeutils and then just:

    alias pre-commit='chronic cargo test& exa -l; wait'
If you really want splits, just spawn tmux with two panes using Tmuxinator, or:

    pre-commit() {
        tmux new-session \; \
          send-keys 'cargo test ||  read' C-m \; \
          split-window -v \; \
          send-keys 'exa -l' C-m
    }
Shell is powerful because of its compossibility, but if you don't choose to learn it then of course it feels clunky
stonewareslord··on Absorption of 5G Radiation in Brain Tissue
> self-driving cars/etc, more integrated city infra cannot happen without 5G

What do you mean? We basically have the first prototype of self driving cars already and what city infrastructure works on 5G but not 4G?

stonewareslord··on Unity patents ECS
I think OP might have confused Unity (a game engine) with Unreal Engine (game engine owned by Epic Games)
stonewareslord··on Exploring fff part 1 – main
I think there's a typo/mistake here. The example:

    read_flags="-t 0.05" read "$read_flags" -srn 1
Won't work. This sets read's environment variable read_flags and expands the current shell's value of $read flags, which generally won't be set. For example:

    a=1 echo $a
Prints nothing because a is not defined in the current shell. To fix, make read a separate statement
stonewareslord··on Guide to Firefox Containers (2018)
Sounds like Containerise can do that
stonewareslord··on Whoogle Search: A self-hosted, ad-free, privacy-respecting metasearch engine
What kind of settings? If you want per-site settings there is (was) uMatrix which allows for extremely granular configuration. Sadly it is discontinued right now. But it still works.
stonewareslord··on Whoogle Search: A self-hosted, ad-free, privacy-respecting metasearch engine
You should do 2 things to mitigate this:

1) Install ClearURLs. This addon strips tracking identifiers from URLs. If you hover a google search link you'll see it doesn't direct to you to website.com it directs you to google.com which then forwards you to the site you clicked without this addon

2) Configure Temporary Containers to make a new container for every different subdomain or domain. This way, if you click a link from google search, regardless of using ClearURLs, a new container spawns for any domain/subdomain that does not match (ex: click netflix.com from google and TemporaryContainers identifies this and spawns a second tab for netflix). This makes some things impossible, like SSO, so configuring it properly can be tricky. You might be able to configure it such that only links clicked from google.com spawn a new container and those that redirect to sso sites don't, but I haven't done this. You can always open a private window where the context is shared (temporary containers don't work in private) if you need SSO.

Obviously there's more you have to do to be even safer because with pings on by default and js enabled on google, they can still see you clicked a link. Also, with Google Analytics (GA), they can infer someone searching "x" and then "another user" from the same IP fetches "x" GA tracking scripts a second later is the same person. The list goes on and Google really likes tracking people, so it's very difficult to mitigate. The first and most important thing you can do is GET OFF CHROME/EDGE!

stonewareslord··on Nimforum: Lightweight alternative to Discourse written in Nim
With javascript disabled on mobile, you just get a header with links that don't work and "best viewed with JavaScript enabled" even on the official https://try.discourse.org/ site

What I don't understand is why discourse can't serve up content that isn't interactive. I get lazy loading if there are >1000 comments on a post, but for anything else, static content should be perfectly fine. Even when you have js on, ctrlf doesn't work because of dynamic loading so the site has to hijack the shortcut with different interaction patterns (pressing enter doesn't go to next result, it loads a separate page).

I just tested with the 999 comment post on that site. First page load with no cache is 5.98MB (1.25MB) and took 5.76s load time. Holding the end key to get to the bottom until I hit the last post downloads a total of 1.91MB (718KB transfer) and takes 70s! That's including all the pictures. That cannot be better than than loading all text and optionally deferring all img loads, right?

stonewareslord··on Whoogle Search: A self-hosted, ad-free, privacy-respecting metasearch engine
They can through browser fingerprinting, yes. Canvas/webgl/fonts/IP/accelerometer/every other web api basically

> If I can...

You can! Install Firefox, Multi account containers (add-on by Mozilla), and Temporary Containers (third party addon). You can configure Temporary Containers to spawn a new container for every tab, or every google tab, etc. Each container is like a new browser session. It can clear the data of a closed container after 15 minutes.

stonewareslord··on Unix shell programming: the next 50 years
> since bash is not up to the task

What do you mean by this? You can write safe shell scripts; it just takes discipline and learning how to correctly write them.

There are a lot of pitfalls but it isn't that hard if people actually learned the language.

Edit: to clarify discipline meaning always doing things correctly and never taking shortcuts. For example, you must use:

    while IFS= read -r || [[ "${REPLY}" ]]; do ((X++)); done < <(command)
If you want to loop over lines in a file. Don't use for loops, don't pipe to while, etc. It may be verbose but it won't be buggy
stonewareslord··on Screw You, Microsoft Edge
Walmart will price match. If you show them the website of a competitor like Amazon with a cheaper price, they will charge you the lower price. I wonder how that would play into this.

I suspect Microsoft isn't indexing prices of smaller retailers as well, so that would also drive more business to Walmart.

← PreviousPage 2 of 4Next →