HNHacker News
TopNewBestAskShowJobs

brasic

576 karma · joined January 8, 2013

submissionscomments
brasic··on Tell HN: People forget that you can stick any data at the end of a bash script
Are you sure that Perl took it from ruby and not the other way around?

(edit: a subsequent correction has obsoleted this comment)

brasic··on June 25th, 2023 Deno Deploy Postmortem
People inevitably convince themselves that DDOS-levels of traffic are unrealistic until they’ve actually been attacked a few times.
brasic··on Apollo is dead. Long live Apollo
Other apps with text boxes besides notes can do the same, but safari specifically can’t. Why, I haven’t the faintest idea.
brasic··on Apollo is dead. Long live Apollo

  > iOS has no user controls for this behavior
Actually, it does but they are shockingly unintuitive and hidden. The best way to change your preference among supported link handlers is to copy a URL, paste it into the notes app, then long press that link and choose “open with” either safari or your preferred app. That will stick until the next time you long press a link in this way.

An iOS developer for JIRA taught me this when I submitted feedback that the JIRA app suddenly stopped intercepting links (probably because I had inadvertently long-pressed to open a link in safari, not knowing I was setting a preference by doing so)

brasic··on MDN can now automatically lie to people seeking technical information
You’re worried about people not using LLM’s _enough_???
brasic··on Github.com is down
Not quite true: github.github.io (aka github pages) has an AAAA record and should be fully accessible over IPv6.
brasic··on Github.com is down
I miss the old status page: https://web.archive.org/web/20170110044141/https://status.gi...
brasic··on Restricting network access using Linux Network Namespaces
See this comment: https://news.ycombinator.com/item?id=35862698

If you implement socket activation and use an empty network namespace your service can be totally disconnected from any network and still handle requests (because the socket FD it listens on was inherited from systemd). This makes exfiltration much more difficult.

brasic··on Atuin replaces your existing shell history with a SQLite database
Works great! To me the reliable instant history sync between tmux panes is one of the best features of atuin. I tried many things to get this working with vanilla bash and it always seemed flaky.
brasic··on Atuin replaces your existing shell history with a SQLite database
Or use the excellent bash-preexec plugin that atuin itself relies on to achieve this in a cleaner way: https://github.com/rcaloras/bash-preexec
brasic··on NYPD urges citizens to buy AirTags to fight surge in car thefts

  > From what I've read the Apple AirTag network is actually quite insecure and can even be used to send arbitrary HTTP packets.
Mind sharing a link on this? It doesn’t match the technical descriptions Apple has published about how the AirTag network operates. On the other hand I can see it being true about Tile…
brasic··on Update millions of records in Rails

  > processes per-query
Minor nit, this is probably what you meant but it’s process per _connection_.
brasic··on We asked the SEC for reasonable crypto rules for Americans
It’s not the SEC’s definition, it’s the supreme court’s:

If:

  - It is an investment of money
  - There is an expectation of profits from the investment
  - The investment of money is in a common enterprise
  - Any profit comes from the efforts of a promoter or third party
Then it’s a security.

https://en.m.wikipedia.org/wiki/SEC_v._W._J._Howey_Co.

brasic··on Gitlab loses one-third of its value after company issues weak forecast
Not sure what you mean. Adding a deploy key is about as simple as I can imagine, definitely doesn’t require messing with apps, which I agree is a pain.

https://docs.github.com/en/authentication/connecting-to-gith...

(disclosure, former GH)

brasic··on Yellen says government will help SVB depositors but rules out bailout
SVB explicitly argued that it was not capable of risking systemic failure and on that basis gained an exemption from Dodd-Frank rules that would have prevented them from failing to hedge against interest rate risk that took them down.

https://fortune.com/2023/03/11/silicon-valley-bank-svb-ceo-g...

There has to be some accounting for that.

brasic··on Silicon Valley Bank staff offered 45 days of work at 1.5 times pay
I’m sure you are aware but just to spell it out: fed money is _also_ not taxpayer money, it’s self-funded.
brasic··on Canada's tax revenue agency tries to ToS itself out of hacking liability
Why would the TOS of a site operated by a national government agency qualify as a “consumer contract or a contract of employment”? And why would a provincial law constrain the actions of the federal government?

https://en.m.wikipedia.org/wiki/Paramountcy_(Canada)

As GP noted, sovereign immunity might be relevant here.

brasic··on Toblerone to change design under ‘Swissness’ rules
Why is naming your product after a place that evokes characteristics you’d like to emphasize a lie?

It sounds like you’d like to ban marketing.

brasic··on GitHub Desktop 3.2: Preview your pull request
My favorite git workflow extension is `git commit --fixup SHA` combined with `git rebase -i --autosquash` to create targeted retroactive amendments. Kind of like `commit --amend that can target more than just the last commit.

I wrote https://github.com/brasic/fixdown to make this easier to use.

brasic··on GitHub Desktop 3.2: Preview your pull request
Plenty of git commands support a -p mode. I like `git stash -p`.
brasic··on GraphQL vs. REST APIs: a complete guide
Everything is higher than zero. GraphQL is inherently not meant to be cached at the transport layer which is why it’s often exposed behind HTTP POST. If caching GraphQL makes sense for your application you probably didn’t need GraphQL in the first place.
brasic··on White Castle collecting burger slingers' fingerprints looks like a $17B mistake
The architecture of this system, in which fingerprints are captured at a local terminal and transmitted to a third party vendor over the network, is explicitly a source of added liability due to how the law is written, where disclosure to a third party is its own separate offense.
brasic··on SBF Caught Using VPN While Awaiting Criminal Trial [pdf]
Yeah, playing the fool is much more likely to be an attempt to influence the jury’s view of mens rea.

https://www.wsj.com/articles/prosecution-of-sam-bankman-frie...

brasic··on GitHub to lay off 10% and close all offices
My favorite room was the "secret room": a wood-paneled library which was only accessible via a hidden door: https://twitter.com/cbrasic/status/1623879372116529155

And it wasn't even the most impressive library in the office...

brasic··on Modules, not microservices
Yep, this is trivial to falsify, Musk jumped to an incorrect conclusion based on some anecdotes that he did not follow: https://twitter.com/Popeska/status/1592179502838435847
brasic··on Meta Quest Pro – Bad AR Passthrough
Thanks, I missed that. Posted an edit at the top of my comment.
brasic··on Meta Quest Pro – Bad AR Passthrough
(Edit: the tearing is not visible through the device, so quite a bit less damning than I thought.)

The tear and color lag on this picture of a moving chart is damning: https://i0.wp.com/kguttag.com/wp-content/uploads/2023/01/MQP...

As is this quote:

  > I also ran a small experiment where I sent a camera flash off in a dimly lit room and measured the delay with light sensors using one sensor to trigger an oscilloscope’s capture and the second light sensor to capture the display response. It typically took a little over four 90Hz frame times (~40 to 50ms) for the flash to show up on the image.
brasic··on Clipboard: Cut, copy, and paste anything, anywhere, all from the terminal
I use https://github.com/BlakeWilliams/remote-development-manager for this, which works by running a server and forwarding its socket over the SSH connection. If you’re willing to add some aliases and editor/ssh config you can easily get a UX that feels like a unified clipboard across remote hosts. My favorite use is integrating the yank buffer of remote vim processes with my local system clipboard.
brasic··on Benchmarking Ruby 2.6 to 3.2
TruffleRuby is leading the pack here: https://eregon.me/blog/2022/01/06/benchmarking-cruby-mjit-yj...
brasic··on Ruby delights built into the language
This was written by matz some time between 1993 and 1994. It appeared in the very first preview release of ruby, version 0.49. The original tarball has the file modification timestamps:

    $ curl -s https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.49.tar.gz | tar -tvz | grep dir.rb
    -rw-r--r--  0 matz   root      127 Jun  3  1994 ruby/sample/dir.rb
← PreviousPage 2 of 4Next →