Better HN
topnewbestaskshowjobs
Log inSign up

eigenvalue

6,392 karma · joined Mar 13, 2013 (13y ago) · 1,218 submissions

Currently building pastel.network in NYC

See my open source projects here:

https://github.com/Dicklesworthstone

And my Twitter here: https://x.com/doodlestein

Submissions

comment 2y ago · link · parent

The K-mafia is in control. Just kidding, I don’t really care either way…

comment 2y ago · link · parent

It's cool in a novelty way that it’s so short, but I would infinitely prefer something like this for actual work and understanding:

  def solve(grid):
      def find_empty(grid):
          for r in range(9):
              for c in range(9):
                  if grid[r][c] == 0:
                      return r, c
          return None

      def is_valid(grid, num, pos):
          r, c = pos
          if num in grid[r]:
              return False
          if num in [grid[i][c] for i in range(9)]:
              return False
          box_r, box_c = r // 3 * 3, c // 3 * 3
          for i in range(box_r, box_r + 3):
              for j in range(box_c, box_c + 3):
                  if grid[i][j] == num:
                      return False
          return True

      def backtrack(grid):
          empty = find_empty(grid)
          if not empty:
              return True
          r, c = empty
          for num in range(1, 10):
              if is_valid(grid, num, (r, c)):
                  grid[r][c] = num
                  if backtrack(grid):
                      return True
                  grid[r][c] = 0
          return False

      backtrack(grid)
      return grid

comment 2y ago · link · parent

Thanks! Already dealing with some issues with that. I think the solution is to just have a series of fallback approaches and then as one method stops working, look to find other ones, but have enough in reserve that you never have a service interruption.

comment 2y ago · link · parent

Someone should completely automate this for users for a one time $5 fee or something like that.

comment 2y ago · link · parent

Apparently it's pretty easy to do on those other platforms. For Mac:

Using BetterTouchTool:

    Install BetterTouchTool from bettertouchtool.net. Open BetterTouchTool and go to the “Keyboard” section. Add a new keyboard shortcut, for example, Ctrl + CapsLock. Set the action to "Insert/Paste Custom Text." Enter your custom message:

    I need you to give me ABSOLUTELY COMPLETE revised code without ANY placeholders that preserves ALL existing functionality!
For BetterTouchTool, there's an option in the app to start at login.

Using Hammerspoon:

    Install Hammerspoon from hammerspoon.org. Create a configuration file (~/.hammerspoon/init.lua) with this content:
hs.hotkey.bind({"ctrl"}, "capslock", function() hs.eventtap.keyStrokes("I need you to give me ABSOLUTELY COMPLETE revised code without ANY placeholders that preserves ALL existing functionality!") end)

Reload Hammerspoon by clicking on its menu icon and choosing "Reload Config."

For Hammerspoon, you can add it to "Login Items" in System Preferences > Users & Groups > Login Items.

186.

Show HN: Timesaving Hotkey for Working with LLMs for Software Development

4 points · by eigenvalue · 2y ago · 2 comments

comment 2y ago · link · parent

Wow, thanks for the great feedback! Yes it will definitely work for a 3 hour video, but just be prepared to get an incredibly long document!

comment 2y ago · link · parent

Yes, I think that's one of the use cases for my project. If you're a YouTube creator, you've already invested a lot of care and energy into making your videos. If you could easily convert those videos in a fully automated way to written documents, complete direct transcripts, and other content like quizzes, then you can add those to your website and it should help you rank higher with search engines.

Once you have the complete direct transcripts and the optimized written documents, I think you could just use regular text search on that and it would work well-- something like Elastic or Algolia for a hosted option would work great. Even a prolific YouTuber probably isn't going to have more than a couple thousand pages worth of text to search through. But yeah, I guess you could also build semantic search on top of that.

I don't think speaker identification is that important for most videos-- they tend to just have a single narrator/speaker. In any case, the written documents that my tool creates just sort of ignores that aspect and turns it into more expository writing that conveys the same information. It's also hard to make a fully automated tool that does speaker identification where you know the identity of the speaker and it's not just Speaker1, Speaker2.

Thanks for your feedback! You should try submitting a video, it gives you free credits just for signing up so you can try it with a few videos.

189.

Show HN: YouTube Transcript Optimizer – Turn Videos into Polished Documents(youtubetranscriptoptimizer.com ↗)

3 points · by eigenvalue · 2y ago · 5 comments

190.

Show HN: YouTube Transcript Optimizer – Turn Videos into Polished Documents(youtubetranscriptoptimizer.com ↗)

2 points · by eigenvalue · 2y ago · discuss

comment 2y ago · link · parent

Thanks for the feedback. I'll try to clarify the pricing table a bit better. And yes, this is targeting creators more. If it turns out that viewers are the better target market, I might pivot it a bit. And I'm considering adding a discount for longer videos.

comment 2y ago · link · parent

Yes, I'm also working on another version that is document-centric. It's a bit of a different problem. In the case of YouTube video transcripts, we are dealing with raw speech utterances. There could be run-on sentences, filler words and other speech errors, etc. Basically, it's a very far cry from a polished written document. Thus we need to really transform the underlying content to first get the optimized document, which can differ quite significantly from the raw transcript. Then we use that optimized document to generate the quizzes.

In the case of a document only workflow, we generally want to stick to what's in the document very closely, and just extract the text accurately using OCR if needed (or extract it directly in case we don't need OCR) and then reformat it into nice looking markdown-- but without changing the actual content itself, just its appearance. When we've turned the original document into nice looking markdown, we can then use this to generate the quizzes and perhaps other related outputs (e.g, Anki cards, Powerpoint-type presentation slides, etc.).

Because of that fundamental difference in approach, I decided to separate it into two different apps. But I'm planning on using much of the same UI and other backend structure. The document centric app also seems like it has a broader base of potential users (like teachers-- there are a lot of teachers out there, way more than there are YouTube content creators). I started with the YouTube app because my wife makes YouTube videos about music theory and I wanted to make something that at least she would actually want to use!

comment 2y ago · link · parent

I actually just finished making a service that does something similar, but it also transforms the transcripts to make them into polished written documents with complete sentences and nice markdown formatting. It also can generate interactive multiple choice quizzes. And it supports editing of the markdown files with revision history and one click hosting.

I'm still doing the last testing of the site, but might as well share it here since it's so relevant:

https://youtubetranscriptoptimizer.com/

There might still be a few rough edges, so keep that in mind!

comment 2y ago · link · parent

Yes agreed, I wasn’t trying to say it’s totally useless, but it’s not as helpful as synthesizing all that context intelligently. It’s more of a parlor trick. But that trick can be handy if you need something like that. Really, the main issue with Gemini is that it’s simply not very smart compared to the competition, and the big context doesn’t make up for that in the slightest.

comment 2y ago · link · parent

Yes, but its reasoning ability is extremely poor in my experience with real world programming tasks. I’m talking about stuff that Claude3.5 Sonnet handles easily, and GPT4o can also handle if it can fit in its smaller context window, where Gemini 1.5 pro just completely fails.

Bigger context is definitely helpful, but not if it comes at the expense of reasoning/analytical ability. I’m always a bit puzzled why people stress the importance of these “needle in a haystack” tests where the model has to find one specific thing in a huge document. That seems far less relevant to me in terms of usefulness in the real world.

comment 2y ago · link · parent

Yes, that’s certainly true, and that’s why I selected that library in particular to try with it. The fact that it’s mathematical— so not many lines of code, but each line packs a lot of punch and requires careful thought to optimize— makes it a perfect test bed for this model in particular. For larger projects that are simpler, you’re probably better off with Claude3.5 sonnet, since it has double the context window.

comment 2y ago · link · parent

The o1 model is really remarkable. I was able to get very significant speedups to my already highly optimized Rust code in my fast vector similarity project, all verified with careful benchmarking and validation of correctness.

Not only that, it also helped me reimagine and conceptualize a new measure of statistical dependency based on Jensen-Shannon divergence that works very well. And it came up with a super fast implementation of normalized mutual information, something I tried to include in the library originally but struggled to find something fast enough when dealing with large vectors (say, 15,000 dimensions and up).

While it wasn’t able to give perfect Rust code that compiled on the very first try, it was able to fix all the bugs in one more try after pasting in all the compiler warning problems from VScode. In contrast, gpt-4o usually would take dozens of tries to fix all the many rust type errors, lifetime/borrowing errors, and so on that it would inevitably introduce. And Claude3.5 sonnet is just plain stupid when it comes to Rust for some reason.

I really have to say, this feels like a true game changer, especially when you have really challenging tasks that you would be hard pressed to find many humans capable of helping with (at least without shelling out $500k+/year in compensation for).

And it’s not just the performance optimization and relatively bug free code— it’s the creative problem solving and synthesis of huge amounts of core mathematical and algorithmic knowledge plus contemporary research results, combined with a strong ability to understand what you’re trying to accomplish and making it happen.

Here is the diff to the code file showing the changes:

https://github.com/Dicklesworthstone/fast_vector_similarity/...

comment 2y ago · link · parent

Yeah, but I have my old iPhone X for that which is good enough for a backup.

comment 2y ago · link · parent

I get so much utility from my iPhone that it’s worth many times what it costs to me. So I’ve been on the upgrade program since it came out and get the new model every year. I always look forward to getting the new phone, even though at this point the improvements are incremental. But it’s very much worth it to me just to get better looking videos and photos of my small children. And stuff like better battery life has obvious utility. I’m just on my phone so much of the day and use it for so many different things that having it be a few percent better in a bunch of categories is a no brainer. And it’s often more than just a few percent!

200.

Bell Labs: Ways of Using Light to Transmit Sound Waves (1978)(youtube.com ↗)

1 points · by eigenvalue · 2y ago · discuss

comment 2y ago · link · parent

Whenever I see rendered scenes like this (I.e., lots of repetitive static geometry) I imagine that annoying guy’s voice going on about “unlimited detail” from that old vaporware video. I guess nanite really did solve that problem for real, as opposed to whatever that old thing was using (I remember something about oct-trees or something).

comment 2y ago · link · parent

They’ve probably already ordered like $250mm of GPUs.

comment 2y ago · link · parent

I found this to be endlessly fascinating. Even though it was all for a pretty niche online game and not for real money, the psychology and preparation and strategy is all highly relevant for real-world Ponzi scheme detection and avoidance. It's also pretty unusual to hear about such a scheme from the actual mastermind, explaining how they thought about it from the beginning and how it evolved over time. It's not obvious from first principles what sorts of things would turn out to be most risky/problematic for the perpetrator, but it all makes total sense when you think about it.

Anyway, it's a really riveting account. If you enjoy it, you might also want to check out this thread on a now infamous Bitcoin Ponzi scheme (stole 500k Bitcoin, an insane amount of value today, but fairly modest back in 2011). The Bitcoin one is exciting because you can trace through as it actually unfolds and see how people were thinking and talking about the situation and the perpetrator. It's revealing in many ways, like in how unwilling victims can be to recognize that they have been fooled, and how the perpetrator is able to deflect and parry attacks through irony and sarcasm and bravado:

https://bitcointalk.org/index.php?topic=50822.0

204.

The Largest EVE Online Ponzi Scheme Ever, Told by the Perpetrator(web.archive.org ↗)

3 points · by eigenvalue · 2y ago · 2 comments

comment 2y ago · link · parent

Fun hack. I bet Alex Graves never in a million years anticipated that his PhD thesis work would be encapsulated in a novelty font.

comment 2y ago · link · parent

It's a bit annoying to do using the GitHub website. From my readme file:

Install the GitHub CLI:

sudo apt update

sudo apt install gh

Authenticate with your GitHub account:

gh auth login

Follow the prompts to complete the authentication process.

Generate a new API key:

gh auth token

This will create and display a new Personal Access Token.

Copy the generated token and use it in the application or set it as the GITHUB_API_KEY environment variable.

207.

Show HN: Influential Stars – Did Anyone Interesting Star/Fork Your Repo?(github.com ↗)

2 points · by eigenvalue · 2y ago · discuss

comment 2y ago · link · parent

Ugh, sorry about that. Should be working now.

comment 2y ago · link · parent

Everyone should just use ReiserFS

comment 2y ago · link · parent

This is incredibly awesome. Looking forward to seeing this but with a nicer typeface (maybe Inconsolata or JetBrains Mono). I can actually see a lot of uses for this-- just displaying JSON in a nice way easily would be handy.
1
678
41