HNHacker News
TopNewBestAskShowJobs

aquasync

9 karma · joined May 29, 2024

submissionscomments
aquasync··on Google Pixel 4a's old firmware is gone, trapping users on buggy battery update
Thanks for the info! My pixel has already applied the update unfortunately - any ideas if switching to lineageos is still helpful in that case?

They’re not offering the free battery replacement in Aus otherwise I’d do that - hard to be sure that getting a new battery in a local repair shop wouldn’t be similarly affected by the new limits (presumably some sort of blacklist on serial numbers?).

aquasync··on Run System Commands in Ruby – When to use which methods to run shell commands
While the article says that backticks don't provide access to the exit status, you can retrieve it with $?.exitstatus.
aquasync··on Generalizing Support for Functional OOP in R
R's evaluation of arguments is lazy, so while not at the level of Haskell it feels like a lazy language to me. Try eg:

  f = function(x) { print('hello'); x }
  f(print('world'))
X is not evaluated in f until referenced. Indeed if you remove x from f, world is not printed.