HNHacker News
TopNewBestAskShowJobs

szhu

763 karma · joined March 17, 2014

https://github.com/szhu
submissionscomments
szhu··on JavaScript for Shell Scripting
Compare to Deno, which also makes JS friendlier for shell scripting! https://deno.land/

Coming from Deno, the single biggest advantage I see here is the handy tag function $:

    await $`cat package.json | grep name`
Hoping someone will write a Deno port of this.
szhu··on AirTag Teardown Part One: Yeah, This Tracks
Btw, would swallowing the AirTag whole be just as dangerous? They're water resistant, but I'm assuming that they won't stay sealed in stomach conditions.
szhu··on SSD makers start warning that mining products like ChiaCoin will void warranty
Crypto is valuable only if we believe it is. Once we discover a way to transmit money that has benefits over crypto, we'll gradually move to that, the same way transactions that felt limited by fiat moved to crypto.
szhu··on Chicago undergraduate mathematics bibliography (1999)
I see a lot of affiliations mentioned in the page, and I think I might be missing some context.

What's the relationship between the author (Chris Jeris) and the OCF user hosting the content (Abhishek Roy)? Also, what is Chicago in the title referencing?

szhu··on Show HN: I made a sandbox game to help with financial planning
Love the theme! Honestly, I would play this game just to spend more time in Windows XP.
szhu··on All-new iMac features the M1 chip
The iMac is an all-in-one, so I don't think many people will be adding their own speakers (might as well get a Mac Mini at that point). I think most users will use the jack for wired headphones, in which case having it on the side makes it easier to access.
szhu··on Google introducing feature in Chrome 90 to create links to highlighted text
Sidenote:

> Fewer than 1% of clients use the "Find in Page" feature in Chrome on Android.

This could potentially be fixed by making the "Find in Page" feature easier to access.

Currently "Find in Page" on mobile is only accessible in the menu, below the fold. There's no gesture or other quick way to access it, making it significantly harder to activate than pressing Cmd-F or Ctrl-F. Are there any menu items below the fold that have over 1% usage?

Another example of similar logic: https://news.ycombinator.com/item?id=26465261

szhu··on Marbles (2016)
I keep coming back to this classic: https://wipp.info/

(edited with shortlink I found -- thanks to whoever made it!)

hn discussion about this: https://news.ycombinator.com/item?id=11851871

szhu··on Car Thing. Spotify’s new smart player designed for your drive
This could be great if they had a version that could be installed into the standard stereo slot that many cars have. (Is that still a thing?)
szhu··on We Are Living in a Climate Emergency, and We’re Going to Say So
I can't find the link, but I read an interesting argument that the USD is more wasteful of natural resources than Bitcoin because its value is indirectly backed by the US military.
szhu··on Apple’s Find My network now offers new third-party finding experiences
Requiring a pin to switch it off might just cause someone to invent a device that can be inserted into the Lightning port to cause a shutdown without affecting the for-parts resale value of the phone. (For example, the device could cause a short circuit or apply an unexpected voltage, causing the power controller to shut off power to the device.) If the attacker has physical access, there's not much you can do.
szhu··on Fselect: Find files with SQL-like queries
Reminds me of osquery!

Looks like osquery can also be used for file searching, but it's not as optimized for command-line usage.

https://blog.kolide.com/the-file-table-in-osquery-is-amazing...

szhu··on Google’s copying of the Java SE API was fair use [pdf]
Great line:

> Unlike many other computer programs, the value of the copied lines is in significant part derived from the in- vestment of users (here computer programmers) who have learned the API’s system.

szhu··on Fed up with the Mac, I spent six months with a Linux laptop
I get what you mean, and I have the same complaints about the defaults. Here are some useful shortcuts to know, especially when fixing issues:

- View > Go to Folder… (Cmd-Shift-G) to type in a path to go to.

- Cmd-Up takes you one level up.

- Right-click/Control-click the current folder name in the title bar to see the location of the current folder. This works with any title bar that has a file/folder icon, not just Finder!

- Cmd-Shift-. to temporarily show hidden files.

And here are some settings I recommend that turn Finder into a very pleasant experience for someone coming from Linux. I always set these as soon as I get a new account:

- View > as Columns (You might need to set this a few times for different initial folders.)

- View > Show Path Bar

- Preferences > General: New Finder windows show (home folder)

- Preferences > Sidebar > Favorites: Make sure (home folder) is checked. I'd actually recommend unchecking every other item in this group (except for Airdrop if you need it). Why: Having less sidebar items makes Column View work better because, when opening a folder in Column View, the sidebar item that's the closest ancestor is shown as the leftmost column.

- Preferences > Sidebar > Locations: Make sure "Hard disks" is completely checked. By default, the / disk is hidden from the sidebar.

szhu··on Fed up with the Mac, I spent six months with a Linux laptop
Apple made Macs UNIX developer-friendly (2001) before they switched to x86 (2005), so they have a good chunk of non-hypothetical past data to look at. Really hoping this means they won't screw this up.
szhu··on IRS guidance for thieves, drug dealers, and corrupt officials
In the US, separation of powers is an important concept. I think the reasoning is that if you give parts of the government extra authority beyond what's necessary for them to do their jobs, the damage due to some of them abusing that power in the name of the public good outweighs whatever extra advantage they have in actually serving the public good.

I don't know if this is true in every situation, but the IRS at least seems like an entity we should be wary about giving additional power to, since it already receives so much private personal information about literally everyone in the US.

szhu··on Police say they found mafia fugitive on YouTube, posting cooking tutorials
I agree. I think we should incentivize more people like this to come clean rather than spending our own resources having to go out and search for them. I think this will result in more people like him getting the punishment they deserve, and also makes it so that we turn more of these people back into contributing members of society.
szhu··on Police say they found mafia fugitive on YouTube, posting cooking tutorials
Punishment is required.

However, because we want people to come clean of their own agency (both to make crime-solving take up less public resources, and to make it such that criminals don't have to wait to get caught before becoming productive and non-harmful members of society), we should adjust incentives such that the punishment for coming clean of one's own accord is a little less, and the punishment for getting caught for the same crime is a little more.

Maybe it could be implemented as adding an extra punishment for concealing a crime?

szhu··on Police say they found mafia fugitive on YouTube, posting cooking tutorials
If it seems obvious and yet people are still joining the mafia, then there's probably something we're not understanding about the dynamics at play. People don't wake up and decide they want to join the mafia.
szhu··on Police say they found mafia fugitive on YouTube, posting cooking tutorials
Does anyone else not get 100% feel-good vibes from this? It's great that he was caught, but it's no wonder criminals turn to more crime... even simple ways of showing their humanity like sharing their cooking can lead to them getting caught. No solution comes to mind but just wanted to point that out.
szhu··on Permission.site
It's a handy way for developers to compare the web permissions that different browsers support, and to be able to quickly see what the permission UI looks like.
szhu··on Girls perform better academically in almost all countries (2015)
Serious question, why is this a data point we are required to ignore? There's been a lot of discourse about bias lately, so I feel like this is a data point people will welcome hearing. Thanks for sharing it.
szhu··on When the prison banned board games, we played chess in our minds
He's writing about how no one in the prison has a chess set. Why are you focusing on him if you care about him so little?
szhu··on A single cell slime mold makes decisions without a central nervous system
This doesn't feel as shocking or startling to me as it probably does for many.

A slime mold is a collection of adjacent cells without a hierarchy that can act together to make decisions. Our brain is also a collection of adjacent cells that can act together to make decisions.

They're fundamentally the same thing. It seems like people are shocked primarily because we arbitrarily defined a notion of certain collections of cells being an "organism", and a slime mold doesn't fit within this ontology.

szhu··on A minimalistic site to vent and see others doing the same in realtime
The safe, proper way to do this is both shorter and more readable!

Both with jQuery:

    const $newdiv = $('<div>')
      .addClass(messageDivClass)
      .text(inputTextBox.value)
      .css({'opacity': '0.95'});

and without:

    const newdiv = document.createElement('div');
    newdiv.classList.add(messageDivClass);
    newdiv.innerText = inputTextBox.value;
    newdiv.style.opacity = '0.95';
szhu··on Birdwatch, a community-based approach to misinformation
There's a lot of reason to doubt that this will work. But one thing makes me hopeful that this might actually work is that Wikipedia's "Talk" pages appear to serve a similar purpose, and they serve that purpose adequately.
szhu··on Pirate Bay founder thinks Parler’s inability to stay online is 'embarrassing'
He's been talking about this for a while.

> Twitter is funding a small independent team of up to five open source architects, engineers, and designers to develop an open and decentralized standard for social media. The goal is for Twitter to ultimately be a client of this standard.

https://twitter.com/jack/status/1204766078468911106

szhu··on Pirate Bay founder thinks Parler’s inability to stay online is 'embarrassing'
Honestly, I think they'd be happier too. They'd have less money and power, sure, but they'd also get less death threats, and a lot of the world (including world leaders) would hate them a little less.

I don't think they would care if Facebook and Twitter were each 1/10 the size of what they are today -- they'd still be billionaires and the companies would still be mind-boggling huge. They only care that the companies are much larger than competitors.

szhu··on FCC orders phone companies to help trace illegal robocallers
First, the technical know-how to use a VoIP number is not accessible to everyone. Maybe it's accessible to a good portion of people in the Bay Area because almost everyone knows someone who works in tech, but there's a lot more people out there.

And second, if enough senior citizens were on VoIP numbers, I bet that's exactly where scammers would target next.

The solution you're suggesting isn't so much to switch to a product that's inherently better, but to switch to a product that only people who don't fall victim to scams are using.

szhu··on Why the iPhone Timer app displays a fake time
I feel like the countdown timer should round up, rather than round to the nearest integer. This makes it consistent with an integer stopwatch, which will round down. In my experience, Apple's timer behavior makes me feel like there's a weird half-second delay when starting and stopping the timer.
← PreviousPage 2 of 5Next →