Hacker News new | past | comments | ask | show | jobs | submit | js2's comments login

Get in the habit of using `ls-files -0` and `xargs -0` to prevent surprises. But there's no need to blame every file:

https://news.ycombinator.com/item?id=42883340


You don't need to blame every file[1]. Use `git rev-list` to find your oldest commit:

  git rev-list --reverse --date-order HEAD | head -1  # or
  git rev-list --reverse --author-date-order HEAD | head -1
To see the files in that commit:

  git ls-tree -lr <commit-id>
To see a particular file:

  git show <commit-id>:/path/to/file  # or
  git cat-file -p <commit-id>:/path/to/file
[1] Caveat: I suppose this doesn't account for files which no longer exist or that have been completely re-written.

https://git-scm.com/docs/git-rev-list

https://git-scm.com/docs/git-ls-tree

https://git-scm.com/docs/git-show

https://git-scm.com/docs/git-cat-file

https://git-scm.com/docs/gitrevisions


Yes, your caveat is correct: it's possible that none of the lines present in your oldest commit have survived into the current head commit of your main branch.

Not sure how the article's algorithm deals with renames. If a file being renamed as a deletion and addition, then that conceals the age of the lines.


> Not sure how the article's algorithm deals with renames

It's relying on `git blame`'s default behavior which is: "The origin of lines is automatically followed across whole-file renames (currently there is no option to turn the rename-following off). To follow lines moved from one file to another, or to follow lines that were copied and pasted from another file, etc., see the -C and -M options."


> I suppose this doesn't account for files which no longer exist or that have been completely re-written.

But... that's the point of this? Finding the initial commit is not nearly as fun as looking at the oldest code that is still running.


This looks like a clone of iStat Menus which I had installed for years and years till one day I realized I basically never look at it and the icons were just taking up space in my menu bar. I finally un-installed it.

The activity monitor in my dock set to show CPU is sufficient for my needs.


the one I use most often is about://peformance in Firefox

I used to open up Activity Monitor, but every single time my laptop fans kick on, it was the browser. with the browser performance monitor, i can see exactly which tab is being naughty. So now, I skip Activity Monitor and go straight to the source. Usually, a cmd-R on the offending tab brings it back under control. I assume some JS dev has not tested their code by having it running in a tab for an amount of time other than how long it takes to test their changes.


It's also often just ads, and installing a blocker helps

blockers are fully engaged. it's not definitely not ads.

do you mean `about:processes`?

`about://performance` doesn't work at least from my FF, but `about:performance` redirects to `about:processes`


yes. about:performance

the // was just muscle memory/brain fart/oops

i never really noticed it redirected to processes.


I found iStatsMenu also destabilized my system. I’d get random kernel panics, while it was running.

It may have been just one of the display modules, as I didn’t use the default set, but I never felt like tracking it down, so I uninstalled it.

Every now and then, I try reinstalling it, but it still crashes the system. Not a big deal. Just eye candy.


It is indeed a clone of iStat Menus. But a very good one, which I discovered when I got tired of paying for the yearly upgrade to iStat.

I was finally persuaded to subscribe to Setapp. I had already paid for licenses to most of the software on Setapp, but as I have more and more of them roll into a “free” upgrade, I definitely think it’s worthwhile.

I'm using an old version of iStat Menus, works fine. I did try Stat but the text in the menu bar is too thin for my eyes, and the developer wasn't receptive to my PR that addressed the issue. Which is fine. But makes the app not for me.

TIL you can show useful stats with 'Activity Monitor.app' right in the dock by right clicking the icon and selecting from the 'Dock Icon' menu item. Thanks!

Maybe it's time I migrated off TextMate.

Tried few times, nothing beats TextMate ergonomics. It's just a small things like the cursor will be in a place where it should be after autocompletions or closing brackets will align where they belongs to, but it makes huge difference for me

I still use it, just love the Mac style text manipulation shortcuts, the way spell check actually works properly and natively in code (Spell check within strings only) which VSCode can't seem to handle with any of the plugins that claim to.

I use VSCode on Windows but no matter what I do to it I can't get it feeling right.


Is TextMate still being maintained? Last time I looked, there were very few signs of life. If that is accurate, the clock is ticking until Apple inevitably drops Rosetta support on Apple Silicon Macs sometime in the (probably not too distant) future.

It's open source, think the developer is on a break from it. He's left it for a few years then done a set of updates in the past or fixed it if it broke because of an Apple update previously.

Ultimately it kinda does everything it needs to.


it is Apple Silicon native

I migrated off textmate to sublime, never regreted it.

I've tried a few times, but Sublime is so obviously not a native Mac app, I find it painful to use. It's definitely the closest match to TM though; it was pretty obvious it was inspired by TM. I think it even used to (still does?) use the same language grammars as TM (regexes that define scopes, basically).

These are burner addresses, the vast majority of which I don't care about. If I ever wanted to move away, iCloud conveniently can show me each address, when I created it, and for what site. I could then change my address on the few sites I wanted to retain the account on.

I actually have a domain I setup with Fastmail just for burner addresses, but Apple offers enough additional functionality (easier to use, tracks the site I created it for and when) that I keep using Apple's offering.


My 2017 Mazda with CarPlay does something similar. It truncates any lists (songs, podcast episodes, contacts, etc) that CarPlay displays to 10 items. All it does is incentivize folks to use their phone. It's incredibly annoying because the Mazda command dial for interacting with CarPlay is otherwise excellent and I don't think that limiting the list size does anything to reduce distraction.

I really like the dials some cars come with like BMWs. Subaru doesn’t have any dials at all unfortunately - just a touchscreen with really bad quality. The interface also often has buttons with very small size that make it hard to operate.

My subaru has a fairly mediocre touchscreen and interface but almost all of the things I actually use are manual controls. I usually turn the touchscreen off first thing when I get in the car (two button presses). My phone connects automatically for music and I either control through the phone or via dials (like for volume) or buttons (like for climate)

It is an incentive to use Siri. You can’t actually use carplay if Siri is disabled.

I find this restriction weird as well. I would like to not have my privacy violated by voice assistants. I just want the phone interface to be accessible through the car display and to be able to control it through a dial ideally.

I mean people really like carplay so if you want them to enable something then tie it to carplay.

I've had AT&T 1 Gbps in RTP NC at $70/mo since Jan 2017, with Max thrown into that price for free a few years back. I keep waiting for AT&T to raise my price but apparently it's permanent unless I change or cancel service.

My neighborhood was one of the first in Wake county that AT&T lit up, probably because it's one of the neighborhoods that re-used Bellsouth fiber[1]. It's been reliable service. No trouble with IPv6. I could've done without the AT&T privacy breach though.

Meanwhile Google didn't finally have fiber to my address till last year, many years after I got the free T-shirt[2] from them.

[1]: https://hack-gpon.org/ont-nokia-g-010g-a/

[2]: https://www.itbinsider.com/fall-fashion-fiber-shirts-are-her...


It's also possible someone with access to the Docker team account on the Apple developer portal revoked it by accident.

The access controls on the Apple developer portal are not particularly fine grained, there is no audit trail, and many actions cannot be undone.


Gets out soapbox

App Store Developer portal is a mess. I manage 10+ accounts and I hate using it so much (Google Play isn’t better, just sucks in different ways). I also have access to an enterprise account and “nerve racking” does not even begin to describe what interacting with the portal is like.

A single click with a badly worded confirmation step is the ONLY thing keeping your released app in the field from shutting down until you get a new version out. Let me say that again: if you delete your signing cert then your app will not open on devices anymore. No way to communicate to users to update or let them know anything at all. Just dead.

Even if you avoid making that mistake, the cert rotation dance is horrible and terrifying, it doesn’t help that Apple’s docs and help text are completely useless. It doesn’t help that most info you find online is for AppStore certs/signing and not Enterprise certs/signing (the _massive_ difference being you can revoke a cert for an App Store app and it keeps working). There is no wording about max certs on their webpage so in most cases you just have to try something in the portal and see if it fails. It’s even more fun because every click in the cert rotation process is a gamble and so after you’ve worked yourself up to finally clicking the button you then run right into an error and you have to rethink your strategy. Again, your entire business potentially hangs in the balance if you pick wrong, have fun!

I understand what Apple is trying to accomplish and that’s fine but they need better messaging. They need to make it clear what the effects of revoking/deleting certs/profiles is. They need to make the connections between certs and profiles more obvious.

The whole UI is horrible and flakey on top of that.


That’s what I thought at first, but actually this seems to be not the case for Developer ID certificates? https://developer.apple.com/help/account/reference/revoking-...


Correct. Developer ID certs cannot be revoked self-service, you have to email Apple.


- Where Wizards Stay Up Late: The Origins Of The Internet

- A Man on the Moon: The Voyages of the Apollo Astronauts


Also: Safari can autofill codes from both email and text messages on macOS and iOS. It then automatically deletes the message too.

https://www.webnots.com/how-to-autofill-verification-codes-i...


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: