I find Claude Chrome's extension to be much more powerful than Cursor's current browser integration. Especially if I need to debug something that requires being logged in to a system that uses SSO for example. This repository will allow you to use Claude's Chrome extension from Cursor against the currently selected tab in your already-open default browser. I created this so that I could take advantage of Claude's Chrome extension from Cursor: Cursor calls a local helper script, the script activates the existing default Chromium browser session, opens the Claude side panel, sends a prompt, reads Claude's final response through macOS Accessibility, and returns that response to Cursor so Cursor can continue coding or editing files.
HN user
bebrws
Handheld, or best on the lap. Has some nice zoom and scroll functionality.
Using whisper.cpp's stream build I used a few keywords to decide when to send what data to chatGPT which is then written back to your terminal. Crazy with the $150 per Interview web application solutions I saw in the past.
It's as simple to use as running a build and run command.
After running a command in the terminal, I often find myself needing to run the same command again, without wanting or being able to easily re-type the command or use the arrow keys (think mobile). This post contains ZSH scripting that keeps track of the last non-empty ZSH command prompt/buffer and runs it whenever I send a few empty lines by pressing the enter key 2 times in a row.
Yes, I know we should all be good enough to not need to ever use console.log statements, or to even iterate for that matter but sometimes I find myself tired and working on a project and just want to double check my data structure is in the correct state. If I use console.log I risk the chance of forgetting that line of code and submitting it to LeetCode which will cause a failure. Using this comment based approach makes logging easier and is "LeetCode safe" in that no console.log statements will ever be executed.
In this blog post, I show how I created a preprocessor that takes any line starting with “// log -” and creates a temporary intermediary file where those lines are replaced with console.log statements to print any expressions following “// log -”. This approach is useful in several ways. It’s easier than using console.log directly, and when run without using the preprocessor, these log lines are simply ignored. The entire setup is straightforward, utilizing a Node.js environment variable/option to run the preprocessor.
Previously, I used a custom bash script to compile repository files into a single context file, but Zed AI’s implementation is far superior, offering a more streamlined and effective solution. But it never hurts to have an alternative method laying around. Like this little shell script..
This is the route I would usually prefer. However I was very happy I experimented with Bevy though just to see how powerful the type system and dependency injection ( https://promethia-27.github.io/dependency_injection_like_bev... ) in Rust can be.
It opened my eyes to a new style of game development and a new way to think about dependency injection and types.
I have always thought that a majority of the hardest software engineering problems relate in some way to gaming and when I see solutions like this it makes me think I am right.
Thanks tho! I'll def be checking that out.
I made a little proof of concept that used whisper cpp and ChatGPT to take “command” requests and generate Apple scripts which I could then run in OS X
It actually works somewhat well. I think with some more work and thought, something like this, could actually be useful.
Just saw this was for linux and Windows only
Just some calming awesomeness?
Reminds me of The Expanse when the DJ makes music from Eros
Fire the miiiiissssillllleeeezzzzz
I had my phone stolen and basically did the same thing. I didn't want to approach anyone for fear of starting some altercation. Wish there was a better way to go about this.
With my phone, if I had another device maybe I could have made it make a sound and then started a conversation with the person that way? I didn't know who exactly had it, although I am pretty sure I saw the person just walk away with it. Wasn't sure enough to make an accusation though.
Just was trying to get some Siri integration. Learned alot like about AWS Cognito. Got better with lldb and Frida.. Tried to document what I could
I tried to implement this using OpenAI's embeddings then using cosign similarity between produces vectors instead of the vector DB ( as shown in OpenAI's example code here ). I do the same thing where I take the highest ranking code snippets (vectors) and include them in a prompt to ChatGPT with an original prompt. My code is a mess since I just hacked it together after a long day of work but its a small file. Like 100 lines.
I used TreeSitter which I thought was pretty awesome though because it allows for parsing a TON of different languages. I had to parse the languages to create the different code snippet strings. I don't want to create a code snippet of half a function for example..
So TreeSitter parses the code into an AST and I send each different AST node to OpenAI to get the vector (I optimized this so multiple nodes of the same AST type are combined). Send the prompt to OpenAI to get a vector. Find the most similar code snippets to the prompt and include them at the top of a prompt to ChatGPT.
This is the same idea right? If anyones interested it can be found here: https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-...
https://github.com/bebrws/openai-search-codebase-and-chat-ab...
From what I understand this seems useful if you have a model that will accept a large or unlimited number of tokens. I was looking into doing the same thing with ChatGPT and went with ada to find snippets related to the prompt and then to include those with a prompt to ChatGPT: https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-...
Does ChatGPT 4 now accept more tokens maybe?
Using OpenAI's brand new API's to search through any of your local codebases (that ChatGPT is not trained on!). This is what Github CoPilot View is working on as well actually: https://githubnext.com/projects/copilot-view/
I am very happy with the results.
Using FFMPEG to record a short audio clip, then using the openai CLI this post shows how to transcribe your audio and send it to ChatGPT using a short script.
Quick script to record audio and send it off to OpenAI for transcription and then to ChatGPT This script records 10 seconds of audio using FFMPEG and then uses the openai cli tool for the rest.
Added this comment to the post if that is ok. Let me know here if it isn't. Thank you!
I am going to add this to the post if that is alright. Please let me know if I shouldn't cite your HN username on the post. You can reply here and I'll see it. Thank you, this is super helpful.
Step by step instructions on how to get the GPT-J 6B model running completely locally on a M1 Macbook with just released PyTorch support! Similar to running your own ChatGPT instance on your laptop.
A code free way to view a site with a paywall and navigate or scroll your way through the content.
Exactly I shouldn’t update the post in point that out Thank you Was just excited to have figured that out. It was in a rush.
With PyTorch now supporting M1 Macbooks I was able to run EleutherAI/gpt-j-6B locally. I do have an M1 with 64GB of RAM but I believe it only required around 25GB and with the environment variable I have documented it will use allow you to use CPU instead of CUDA I believe.
A short summary and video on how anyone can easily remove the paywall on a site, like a news website, an then scroll down to the content. A picture is worth a thousand words and the video really shows how simple this is.
There are a ton of other approaches that would work with NodeJS that would be even more simple though right? The easiest or first that comes to mind is just have your function that does whatever functionality is required for creating this assetsManifest (whatever both compileServer and compileBrowser depend on). Lets call this createAssetsManifest. Then you have your 2 compile async functions but you just don't await on them and let them run without using the await keyword.
const manifest = await createAssetsManifest();
compileBrowser(manifest);
compileServer(manifest);
I am wondering if since the creation of async/await that the idea behind callbacks and async operations in general in Node has been forgotten.Not referring to the author or anyone in particular. Just a thought since these keywords might used so often by engineers new to Node that they might not have ever learned what came before?
Amen
The end of that first paragraph is beautifully written.
Someone call Brahm