HNHacker News
TopNewBestAskShowJobs

carb

395 karma · joined March 7, 2012

submissionscomments
carb··on Miller: Like Awk, sed, cut, join, and sort for CSV, TSV, and tabular JSON
To me the last example is still simple. When I encounter this in the wild, I don't really care about preserving the header.

  tail -n +2 example.csv | sort -r -k4 -t','
Or more often, I just do this and ignore the header

  sort -r -k4 -t',' example.csv
Keeping the header feels awkward, but using `sort` to reverse sort by a specific column is still quicker to type and execute (for me) than writing a program.
carb··on Miller: Like Awk, sed, cut, join, and sort for CSV, TSV, and tabular JSON
This is nice. I use `column` for pretty printing CSV/TSV but it fixes two tiny gaps in `sort` (skipping header lines) and `jq` (parsing CSV input. `jq` supports `@csv` for output conversion but not input).

  $ cat example.csv 
  color,shape,flag,index
  yellow,triangle,1,11
  red,square,1,15
  red,circle,1,16
  red,square,0,48
  purple,triangle,0,51
  red,square,0,77
  
  # pretty printing
  $ column -ts',' example.csv 
  color   shape     flag  index
  yellow  triangle  1     11
  red     square    1     15
  red     circle    1     16
  red     square    0     48
  purple  triangle  0     51
  red     square    0     77
  
  # sorting with skipped headers is a mess. 
  $ (head -n 1 example.csv && tail -n +2 example.csv | sort -r -k4 -t',') | column -ts','
  color   shape     flag  index
  red     square    0     77
  purple  triangle  0     51
  red     square    0     48
  red     circle    1     16
  red     square    1     15
  yellow  triangle  1     11
carb··on Bing: “I will not harm you unless you harm me first”
This is the second example in the blog btw. Under "It started gaslighting people"
carb··on Some insects I found inside dried Turkish figs from Trader Joe’s
This is mentioned in the write-up actually near the end! The author notes on some fungus found and photographed.
carb··on Apple Books digital narration
You can play with it on https://uberduck.ai/ and they have a very active Discord!
carb··on Moonwalkers: Shoes that make you walk faster (pre-order)
Compared to the weight of the user, does the weight of the shoes matter? And would a worn battery help longevity vs built-in given that it still contributes to the total weight of the user+shoe?
carb··on Salesforce will lay off 10% of staff as part of restructuring
It sounds like their job was pretty toxic and pushing through their work-life boundary. (This has happened to me before).

When that happens regularly, and you get used to being woken up in the middle of the night to respond to a technical outage or needy management, the lightest phone buzz can shock you awake.

Given the described situation, I'm not surprised they woke up to an unexpected phone notification :(

carb··on Plaid Layoffs
Uberetto/a was used internally by travis kalanick for a long time
carb··on Show HN: Practice the YC interview with a voice bot in the browser
oh wow, I didn't expect to have to answer such specific questions about my made-up startup prompt or to have it ask those questions so quickly. Very cool
carb··on Ask HN: Examples of good technical writing?
Thank you for the recommendations! These look wonderful.
carb··on Sounding the alarm: How noise hurts the heart (2021)
I'm with you. One option I've seen is to wear gun range noise protection muffs and wear low volume earbud. Avoiding active noise canceling but still giving isolation.
carb··on AirPods don't “just work”
Also agreed. I have been using Jabra earbuds daily for about four years and they would perfectly.
carb··on Benzene detected in many sunscreen products
How often do you rub gasoline on your skin?
carb··on I booked my cheapest one-month trip
It's likely you're underestimating the complexity required to run Hopper and support all existing features. Only a small subset of those engineers will do mobile work. And they likely have many more priorities than building Auto-buy, the benefits and viability of which isn't obvious. So while the rest of the Hopper Eng team churns on with other long- and short-term changes, one or two engineers may have been able to lobby for a POC on iOS. Or maybe it was just a quick week long hackathon project that's still being monitored for ROI.
carb··on Swimlanes.io – generated editable sequence diagrams
As we're listing alternatives, Lucidchart also supports generated UML Sequence Diagrams, which lets you use their GUI after generation to customize it / alter as desired
carb··on The Economics of 24/7 Lo-Fi Hip-Hop YouTube Livestreams
The community that birthed the open source software movement and organizations like the Free Software Foundation?
carb··on Jepsen: Redis-Raft 1b3fbf6
FYI the parent of the comment you replied to was about their experience with Paxos specifically, not the main article.
carb··on De-Escalation Keeps Protesters and Police Safer
I don't know why this was downvoted, it is an entirely true statement.
carb··on De-Escalation Keeps Protesters and Police Safer
If you have proof that Person A killed your neighbor, and yet they were being protected from prosecution, of course I would support your right to protest. Sometimes the only way to get change is with large public support.

Unfortunately, today's news focuses only on violence and fear mongering. You will eventually realize that peaceful protests have never successfully brought change. You will find yourself screaming into a void, without justice.

Today, the police claim that there are only a few Bad cops but most are Good, and ask us to trust that. There are only a few rioting protestors, but most are peaceful. However, the cops across the US are rioting, beating, and destroying the lives of every protestors. Cleveland PD has banned news media from entering downtown. Seattle PD has fired flashbangs and rubber bullets at news reporters. A black CNN reporter and their whole crew was arrested live to avoid the public witnessing what was to take place.

Nobody disagrees that rioting and vandalism and burglary are horrible acts. But I would rather the people riot if it leads to lives being saved and equal accountability for all citizens.

carb··on De-Escalation Keeps Protesters and Police Safer
Yes. If police departments properly charged their employees when they break the law, there would not have been protests, rioting, or looting. Trevor Noah's attempt at explaining this is very straightforward but adroit.
carb··on Remote Workers Should Move to College Towns
Isn't off-campus rent already generally higher in college towns because of the high demand and high rate of turnover, preventing any rent control?

If rent increase beyond what is sustainable for college students, it will force the college to invest in more affordable on-campus housing options (Or college-owned, rentable apartments).

carb··on Renaming files with mv without typing the name two times
Braces just evaluate and expand.

    $ echo {A,B}
    A B
    $ echo {A,B}{C,D}
    AC AD BC BD
    $ echo {A,B}{C,D}{E,F}
    ACE ACF ADE ADF BCE BCF BDE BDF
carb··on Show HN: To fight quarantine boredom I build a site to watch movies with friends
I would honestly recommend jqbx.fm instead if you have a spotify premium account. plug.dj goes through constant ownership changes, prolonged site closures, and suffers from over gamification+monetization. JQBX is a much cleaner experience with much better support for mobile / streaming on different devices that are connected to your Spotify account.
carb··on Facial Hairstyles and Filtering Facepiece Respirators [pdf]
No, it's a viral way to show that your beard should not cross the seal. :) It's being shared a lot and raising awareness.
carb··on Uber S-1
> "where uber is not allowed or limited"

Doesn't that strengthen the argument for the network effect? The only places there have been successful 3rd party launches are in markets without Uber or Lyft, where there is no network effect to compete against.

carb··on Keeping CALM: when distributed consistency is easy
The post makes clear statements about how distributed consistency following CALM can regain lost performance by removing the need for coordination, without adding much complexity.

Keeping architectures monotonic (as defined by post and the linked paper) isn't difficult, especially if you allow yourself excess storage and (again, as discussed in the paper) deal with compaction of your data structures asynchronously, off the critical path.

carb··on Cal Newport on Why We'll Look Back at Our Smartphones Like Cigarettes
Newport make the same comparison in the book. I personally think about it such that "flow" is the verb to produce "deep work", the noun.

I also highly recommend his book.

carb··on How I Learned to Stop Worrying and Love Electric Scooters
It's a reference to Dr. Strangelove (1954)
carb··on How I Learned to Stop Worrying and Love Electric Scooters
I mean, the reference is 54 years old now. /s
carb··on Evolution’s Worst Mistake? How About External Testicles?
The author doesn't actually think this is the worst mistake evolution made. The articles in this series elaborate on ideas that didn't make it into a final book. The author has some gripes with external testicles, but didn't find them important enough or interesting enough to fit the discussion about them into his book, Human Errors.
← PreviousPage 3 of 6Next →