News for hackers. Stuff that matters.

josephrmartinez

Re:Ask HN: How did you become a good listener? on Monday July 08, 2024 @03:36PM (#40908704)
Eep! Thanks for pointing that out. I'll just put the list here: - Giving advice - Changing the subject - Dismissing feelings - Leading questions - Devil's advocate - Sympathy (e.g. "I know exactly what you're going through...") - Commiserating - Defensiveness - Static labeling - Sarcasm - Shutting down - Intellectualizing - One-upping - Storytelling

Not saying these are all bad all the time. Just things to maybe start noticing. See what happens when you just hold off on these types of reactions for a moment.

You don't even have to do anything. Just... chill. Be silent. Think about what the person said.

I've found this is a more actionable place to start than something like "read this book" or "take this course"

Re:Ask HN: Better Way to Practice Leetcode? on Monday July 08, 2024 @01:49PM (#40907553)
Not looking for an easy way out, ha! More curious about ways to actually be more diligent with the practice so that I am actually learning and retaining the knowledge. Curious about what other people have done to take learning into their own hands. Making the problems into Anki cards seems like one approach. I appreciate the note in the other comment though that writing the problems out by hand is possibly more reflective of how you may encounter the problem in an interview setting. Getting too comfortable with my IDE could be a detriment....
Re:Ask HN: How did you become a good listener? on Monday July 08, 2024 @01:42PM (#40907494)
Here is something actionable you can start doing immediately: recognize when you are jumping into habitual reactions in conversation. (e.g. problem-solving, giving advice, storytelling, devil's advocate, etc). I have a list of those here under "concepts": https://josephrmartinez.github.io/reactionsjournal/

Just chill out and try not doing that for a few seconds. Not saying this is always the wrong thing to do, but if your intention is to have your friends and colleagues appreciate your listening skills I think this is the starting point. Be more present to the conversation; responding to what they are actually saying and not just habitually reacting.

Ask HN: Better Way to Practice Leetcode?

Do you have a method for practicing leetcode that you think is somehow... better? Or useful? Or interesting?I find the gamification of the leetcode website distracting and not helpful. The solutions space seems noisy and crowded with influencer types.I saw a presentation recently from a developer who made Anki cards for their leetcode problems. That gave them a better way to focus on actually...

( Read More... | 4 comments | on HN )
Re:Phosphor Icons on Saturday July 06, 2024 @12:29PM (#40891453)
Excellent icons and documentation. Would highly recommend even just checking out the website to see how they demo the flexibility of icon styling.
Re:Language models on the command line on Tuesday June 25, 2024 @09:53AM (#40788656)
A CLI tool for generating tutorials based on the work you recently committed: https://github.com/josephrmartinez/mktute

npm i mktute

You can select between local model (ollama), claude 3.5 sonnet, or gpt-4. I've been surprised to find sonnet much better in performance and price for this task.

Congrats on putting this out there in the world!

Quick landing page feedback: Could you update it so that the first two screen captures are not the same content? And then pick a different second example that isn't also about leaving a note? More variation in the landing page examples would give me a better intro.

Is it possible to just call them "researchers at xyz institute" and link to their lab rather than "Scandinavian researchers"?

Here is a similar open source project: https://github.com/josephrmartinez/soapscribe

Just a starting point. But if you are interested in this space, fork away and build it into something useful!

My personal take is that the current tools on the market are too expensive. The cost should go way, way down. This should stay open source. Patients should have easy access to full audio recordings and transcriptions of their medical appointments. One can dream!

There are a lot of these youtube-openai api projects, but I really don't want to open another page to interact with youtube videos. This is a Chrome extension to perform tasks on YouTube videos without leaving your current tab.

This extension simply pulls down a transcript for the video you are currently viewing and sends this to the OpenAI API with your task request.

"Generate a vegetarian version of this recipe."

"Extract the materials list for this project."

"What was the book they recommended?"

This extension does not use a speech to text model to transcribe the video or an image recognition model to actually pass along information about what took place in the video. Automatically generated YouTube transcripts are not great quality, but they tend to be totally fine for the lightweight use cases when you just have a simple question on a video with dialogue.

gpt-3.5-turbo-1106 with the 16k token context window is used by default for videos under about ten minutes. For longer videos, the gpt-4-1106-preview model with a 128k context window is automatically selected. You should be able to use this for videos of to about four hours in length, but this is highly dependent on the volume of dialogue.

Best thought of as a very simple starting point for configuring a diy extension of your own. I actually use this on a regular basis now! Its nice for just getting around ads and not suffering through long youtube videos sent by well-meaning friends. Would love to see how other people configure this to be even better. Fork away!

This is a bit confusing. It appears the model license https://ai.meta.com/llama/license/ is different from the code license (Apache 2.0).

Seems like... there are lots of opportunities these days to clear up what open source means?

I made a simple Chrome extension that similarly pulls down the video transcript and sends this to the openai chat completions endpoint: https://github.com/josephrmartinez/AskYouTube

This extension allows me to "ask" the model to perform a task on the video content: - "Give me the materials list" (for a diy video) - "What was the recommended book?" (for a 2+ hour podcast where they made a reference I can't find again easily) - "Extract the recommended protocol" (for 3+ hour health videos) - "Provide a counter argument" (for when I'm getting bored...)

Big plus is that you DO NOT need to wait for the ad to play through. I can just navigate to the video and send in a query without having to watch any ads.

Youtube transcripts are pretty rough. At first, I used Whisper to create a better transcript. But my primary use is to ask something of the youtube video - I found that slinging the so-so transcript along with my task was totally fine. Really simple project: Chrome extension in just html, css, and js. FastAPI server for the openai endpoint. Server function does a quick tokenization on the transcript to determine if I need to use the gpt4 model for the 128k context window or if the gptt3.5 16k context window is okay.

Naturally, here is a short youtube demo of the extension: https://www.youtube.com/watch?v=M1zq9NKIcbw&t=54s

I've found that to be the case. I typically don't want a full transcript -- I want the materials list, or a summary, or a counterargument. I've found it is totally sufficient to just plop the transcript into an LLM and ask for my desired output. No need to clean of the transcript ahead of time.
This is nice! I like how you've built upon your previous youtube transcript cleaner project and put together something really compelling.

Have you thought about spinning this together as a Chrome extension?

Re:Ask HN: Who wants to be hired? (November 2023) on Wednesday November 01, 2023 @08:32PM (#38107365)
Location: Phoenix

Remote: Open to remote, hybrid, or in-house

Willing to relocate: Yes

Technologies: Python, Javascript, React, Tailwind, CSS, Figma, Astro, Firebase, Node.js, PostgreSQL, MongoDB, Supabase, Next.js, FastAPI, happy to learn about your stack!

Résumé/CV: https://www.linkedin.com/in/joseph-martinez-08174811/

Personal site: https://josephm.dev/

Github: https://github.com/josephrmartinez

Email: [email protected]

Hello! I'm a new software developer with experience building full-stack web applications and rapid prototypes. Recently built a social network to support positive habits. Currently working on full-stack apps with AI integrations. Non-software background: I ran a successful greenhouse farm for ten years and also gave workshops on empathetic communication (to clients such as wikimedia). Entrepreneurial but also humble, productive alone and on a team, passionate person looking for entry-level position.

Show HN: Nineideas – Habit replacement for compulsive information consumption

https://nineideas.net/

I've just started learning to code this past year. nineideas.net is my first complete full-stack app. I followed the MDN docs and the Odin Project for most of my learning, so this is a classic MERN app.The point of this app was to create something to replace passive/compulsive information consumption (HakerNews, Reddit, various newsletters) with something more constructive. I'm open to any...

( Read More... | 1 comment | 2 points | on HN )
Re:Show HN: The Captcha Game on Thursday October 05, 2023 @07:17PM (#37785431)
My only suggestion would be to maybe put something sliiiiightly playful in the first level. Or change it from the crosswalk one? I feel like the crosswalk is the most tedious Captcha; maybe people are moving on before giving it a shot and seeing the actual "game" ?
Re:Show HN: The Captcha Game on Thursday October 05, 2023 @04:23PM (#37783835)
I laughed out loud when I got to the third one. Nicely done.
Re:Ask HN: Could you share your personal blog here? on Tuesday July 04, 2023 @06:19PM (#36593234)
https://josephm.dev/blog/

I'm trying to develop a habit of writing ~750 words each day and then taking one of these 'drafts' each week to edit into a blog post. I've found this is a good balance.

Re:Ask HN: Who needs help with side projects? on Friday July 01, 2022 @08:45PM (#31954870)
I'm building a simple web app to help me spend more time actively creating ideas when I'm online and less time just passively consuming information.

The app is super simple. It just encourages you to write ten ideas on a topic. You can either come up with the topic or borrow a pre-existing topic from someone else on the site. When you finish coming up with ten ideas on that topic, you can see all the other ideas that everyone else has come up with on that topic.

So instead of just scrolling and never contributing anything actively, I have to at least think about the topic and work on it a bit if I want to see what other people are thinking as well.

I can select a topic prompt "10 ideas for fun weekend DIY projects that cost less than $300." I write my ten ideas and then I see that 6 other people have also written ideas. Bam! Now I can see 60 more ideas for weekend DIY projects.

I've put together a very rough mock up using Anvil here: https://ten-ideas.anvil.app/ (Anvil lets you build web apps using nothing but python).

I'd love some feedback on what to do next for: - finishing the project on Anvil - finding about ten initial users to give feedback - sensible ways to put this out in the world

I just started learning to code a few months ago. My profession is farming, this is just a fun, non-commercial side project to learn and encourage positive online habits. Any pointers would be massively appreciated.