Better HN
topnewbestaskshowjobs
Log inSign up

jimstr

87 karma · joined Oct 7, 2012 (14y ago) · 18 submissions

Submissions

comment 1y ago · link · parent

What about https://www.theguardian.com/technology/2025/apr/24/elon-musk...

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

What Open AI api are you using to read PDFs?

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I bought a $20 US gift card on ebay and redeemed that into a new US account

comment 5y ago · link · parent

another service with ”contact us"-pricing. Seems having a clear and transparent pricing model is hard

comment 6y ago · link · parent

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!

comment 7y ago · link · parent

If you like it and want to support development, the main developer is on Patreon https://www.patreon.com/kovidgoyal

comment 7y ago · link · parent

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.

comment 8y ago · link · parent

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

comment 9y ago · link · parent

KanbanFlow, https://kanbanflow.com/ , is pretty serious about their Kanban implementation. Worth a look!

12.

C64-devkit – All you need to start coding 6510 asm for Commodore 64 on Windows(github.com ↗)

1 points · by jimstr · 9y ago · discuss

comment 9y ago · link · parent

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)?

comment 9y ago · link · parent

> so a remote driver can take over a car

nope. nope.

comment 10y ago · link · parent

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.

comment 11y ago · link · parent

When having more than one web server (and no shared file system) ?

comment 13y ago · link · parent

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 ?

comment 14y ago · link · parent

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.