HNHacker News
TopNewBestAskShowJobs

jimstr

87 karma · joined October 7, 2012

submissionscomments
jimstr··on The librarian immediately attempts to sell you a vuvuzela
What about https://www.theguardian.com/technology/2025/apr/24/elon-musk...
jimstr··on Show HN: Presentations for your webcam, not a projector
Was interested until I checked the pricing and saw it sold as a subscription. Just let me buy it and I'll decide if I want to buy version 2 next year.
jimstr··on Ask HN: How do you use AI to get things done faster?
What Open AI api are you using to read PDFs?
jimstr··on OverflowAI
The answer I got with the prompt "You are a git expert. How do I search for a string in dangling commits?"

Was: Dangling commits in Git are often referred to as commits that are no longer reachable from any branch, tag, or the HEAD. These commits usually occur when you create a commit and then move the branch pointer away from it without creating a new branch or tag. They can also occur during rebases or other history rewriting operations.

Git has a garbage collector (`git gc`) that will periodically clean up these dangling commits, but until that happens, they're still in your repository and can be examined.

Unfortunately, Git doesn't provide a direct command to search for a string in dangling commits. However, you can find these commits using the `git fsck` command, which checks the filesystem for errors and dangling commits.

Here is a way to do it manually:

1. List all the dangling commits using `git fsck --lost-found`. This will print out all the dangling commits and store them in `.git/lost-found/commit/`.

2. For each dangling commit, you can search for a specific string using `git log -p <commit-id>` or `git show <commit-id>` and then pipe the output to `grep`.

Here's an example of what this might look like in a script:

  mkdir -p .git/lost-found
  git fsck --lost-found
  for commit in $(ls .git/lost-found/commit/); do
      git show $commit | grep -q "your string here" && echo "Found in commit $commit"
  done
This script will print the IDs of any dangling commits that contain the string "your string here".

Remember to replace "your string here" with the string you are searching for.

*NOTE*: This operation could be time-consuming if you have a lot of dangling commits or a large repository. Also, this approach might not work if the garbage collector has already cleaned up the commits. Make sure to be careful when manipulating Git's internals like this, as it could potentially corrupt your repository if done incorrectly.

jimstr··on ChatGPT app for iOS
I bought a $20 US gift card on ebay and redeemed that into a new US account
jimstr··on Grouparoo: Declarative Data Sync
another service with ”contact us"-pricing. Seems having a clear and transparent pricing model is hard
jimstr··on CouchDB 3.0
I've gotten the impression that clustered Postgres still isn't very straightforward to run. Do you mind elaborating on your ideal setup and point to some resources?

Thanks!

jimstr··on Calibre 4.0
If you like it and want to support development, the main developer is on Patreon https://www.patreon.com/kovidgoyal
jimstr··on Time anxiety: is it too late?
The book Range: Why Generalists Triumph in a Specialized World by David Epstein https://www.goodreads.com/book/show/41795733-range argues a lot for this as well, and goes on to discuss numerous examples where generalists have made the breakthroughs and/or excelled in some way, due to synergy, overlap and inspiration.
jimstr··on How Sweden is building the world’s second-longest road tunnel
There was a previous Swedish tunnel project that had a number of incidents, among others groundwater pollution caused by a new sealing compound that contained acrylamid

https://en.wikipedia.org/wiki/Hallands%C3%A5s_Tunnel

jimstr··on Wekan: An open-source Trello-like kanban
KanbanFlow, https://kanbanflow.com/ , is pretty serious about their Kanban implementation. Worth a look!
jimstr··on Evernote's New Privacy Policy Lets Staff Read Notes to Improve Service
I keep a lot of scans in my Evernote account, and the built-in OCR is very handy for searching old documents. Does anyone know of any good alternatives here, preferably something you can host somewhere (compared to just running it on your desktop)?
jimstr··on Waymo: Google's self-driving car company
> so a remote driver can take over a car

nope. nope.

jimstr··on SQL Server 2016 is generally available today
We made the mistake of buying a 20 core server for running SQL Server 2008, which was fine then, but the upgrade to 2016 would be really expensive due to the new per-core licensing, which means we'll probably be stuck with 2008. Microsoft doesn't leave us much choice than to use Postgres from now on.
jimstr··on Isso – Open Source Alternative to Disqus
When having more than one web server (and no shared file system) ?
jimstr··on Everpix
Registered, downloaded app, attempted to sync "This folder doesn't appear to be on a Mac disk - Please select a different folder". So, why is it not OK that I keep my pictures on my NAS ?
jimstr··on How to use Gmail to destroy your relationship with your investors and customers
I did this as well, and it has been working great for me for a few years. A month ago I noticed by chance that it had stopped forwarding 12 hours earlier for no apparent reason. Deleting the rule and recreating it got it working, but it got me thinking of doing a more robust solution.