6,392 karma · joined Mar 13, 2013 (13y ago) · 1,218 submissions
See my open source projects here:
https://github.com/Dicklesworthstone
And my Twitter here: https://x.com/doodlestein
comment 2y ago · link · parent
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 gridcomment 2y ago · link · parent
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
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
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'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
comment 2y ago · link · parent
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
comment 2y ago · link · parent
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
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
comment 2y ago · link · parent
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:
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
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