HN user

umaar

667 karma

Front end web developer.

Mailing list: https://umaar.com/dev-tips/

Video course on Chrome DevTools: https://moderndevtools.com/

[ my public key: https://keybase.io/umaar; my proof: https://keybase.io/umaar/sigs/V4cWz1hm8-M9l5D8L0k47IsOZSJQBDsVThwzMTlqGZk ]

Posts53
Comments115
View on HN
github.com 2mo ago

New security vulnerabilities disclosed in Next.js (patches released)

umaar
3pts0
adragos.ro 1y ago

Fontleak: Exfiltrating text using CSS and Ligatures

umaar
3pts1
developer.mozilla.org 1y ago

Fixing your website's JavaScript performance

umaar
3pts0
www.debugbear.com 1y ago

Brand New Performance Features in Chrome DevTools

umaar
2pts0
www.debugbear.com 1y ago

Brand New Performance Features in Chrome DevTools

umaar
3pts0
firebase.google.com 2y ago

Build AI-powered web apps with Firebase Extensions

umaar
1pts1
umaar.com 3y ago

Over 270 tips on Web Development

umaar
3pts0
www.youtube.com 3y ago

Consume streaming data from OpenAI with vanilla JavaScript

umaar
1pts2
chatbling.net 3y ago

WhatsApp with AI: ChatGPT, image creation and speech to text

umaar
1pts2
www.bbc.com 5y ago

The first person in the UK to have air pollution listed as a cause of death

umaar
276pts157
umaar.com 5y ago

Conditional JavaScript: Only download when it is appropriate

umaar
75pts48
moderndevtools.com 5y ago

Show HN: Modern DevTools – A video course on Chrome DevTools

umaar
1pts1
umaar.com 5y ago

Chrome DevTools: Refactor Your Stylesheets with the CSS Overview Panel

umaar
2pts0
news.ycombinator.com 5y ago

Hundreds of animated tips for Chrome DevTools

umaar
1pts0
developer.mozilla.org 6y ago

MDN Web Docs Glossary: Definitions of Web-Related Terms

umaar
1pts0
umaar.com 6y ago

Things I learnt after 5 years at Shazam as a web developer

umaar
2pts0
dev.to 6y ago

I visualised 1B Shazam Music Recognitions

umaar
1pts0
umaar.com 6y ago

Data Visualisation with 1B Shazam Music Recognitions

umaar
1pts0
dev.to 6y ago

The Benefits of Speaking at Tech Conferences

umaar
2pts1
umaar.com 6y ago

The largest collection of animated Chrome DevTools tips

umaar
3pts0
twitter.com 6y ago

Chrome Flag: Force Dark Mode for Web Contents – On Desktop and Mobile

umaar
1pts0
umaar.com 6y ago

The Spreadsheet I Use to Compare Job Offers

umaar
2pts0
news.ycombinator.com 6y ago

Tell HN: You can now make Chrome show the full URL in the address bar

umaar
3pts0
umaar.com 6y ago

My code exercises I submitted to get job interviews at tech companies

umaar
1pts0
umaar.com 6y ago

Learning New Code Techniques and Concepts from Open-Source

umaar
1pts0
umaar.com 7y ago

The biggest collection of tips for Chrome DevTools

umaar
2pts0
medium.freecodecamp.org 7y ago

The Benefits of Speaking at Tech Conferences

umaar
2pts0
twitter.com 7y ago

Practical mini-projects in Node.js – Video, code and slides

umaar
2pts0
www.eff.org 8y ago

Bogus copyright and trademark complaints: EFF’s Hall Of Shame

umaar
91pts21
umaar.com 8y ago

A large list of Chrome DevTools tips and tricks

umaar
2pts0

I imagine it's not, but can also see automated systems flagging the number as being the recipient of messages for over a hundred different financial institutions.

Hey HN, have seen a lot of AI demos recently using libraries/frameworks for what is effectively an API call - so thought to showcase how this could be done with vanilla JavaScript. Turns out response.body is an async iterable, so you can do something like:

  for await (const chunk of response.body) { // use chunk }

I have stuck with cheap VPS servers for as long as I can remember. It takes 5 minutes to deploy a full stack node.js app, along with a database - and I've yet to exhaust the resources on my VPS, even with all my side projects (production grade and hobby stuff).

Have always found it weird how so many heroku-style hosting providers charge _per app_, things get costly, quickly, when you have lots of small apps like I do.

Just yesterday I realised I'll need a database to store job queues for https://chatbling.net - ChatGPT helped me figure out how to install it, have it persist to disk, ensure it starts up with the system etc. It's nice to not be fearful of unexpected charges hitting my card.

To anyone reading, even if it's just for learning, every now and then, skip the vercel/fly.io/netlify/planetscale/upstash/render/railway whatever cool hosting provider is out, and give a $5 VPS a try.

I see my server has restarted a few times! I imagine it's folks here since I haven't shared Chat Bling elsewhere yet. Sorry to anyone who started generating images, but haven't received a response. The 'jobs' for images generations are stored entirely within memory, so a server restart will lose all of that.

Going forward, I'll explore storing image jobs in redis or something, which will be more resilient to server crashes.

As for conversation history, I'll continue to keep that in memory for now (messages are evicted after a short time period, or if messages consume too many OpenAI tokens) - even that's lost during a server restart/crash. Feels like quite a big decision to store sensitive chat history in a persistent database, from a privacy standpoint.

Hey HN, I made Chat Bling. An AI chat bot that works with official WhatsApp APIs. You can:

- Chat with ChatGPT directly from WhatsApp.

- Generate pretty cool images (see the home page for screenshots).

- Transcribe your WhatsApp voice messages - speech to text using Whisper.

No signup needed, thank you, let me know if you have any questions or feedback.

Incredible results to my questions. Do these work by finding similar pieces of text from a vector DB, and then embedding those similar pieces of text in the prompt? The answers I'm getting seem to be comprehensive, as if it has considered large amounts of book text, curious how this works as there's an OpenAI token limit. I've heard this is what tools like langchain can help with, so maybe I should play around with that as this all seems like a mystery to me.

Excited to see what comes of it. Lots of people will have a private corpus, and the idea that we can semantically query it sounds so interesting.

Like asking 'what streaming services am I paying for and how much have I spent on them to date?', and some tool going over your bank statements to pick out spotify, netflix etc. I could see being useful.

https://simonwillison.net/2023/Jan/13/semantic-search-answer...

Wouldn't this approach be quite brittle? For example, where would one define snippet boundaries - isn't it possible that extracting a snippet at arbitrary points may change the information within that snippet?

But then you have the issue of GPT3 token limits, so you're limited in how many of these relevant snippets you can embed into a prompt. Wondering if there's a better way to go about this (for your first example, rather than OPs use case).

I've put over 200 tips like that on my website: https://umaar.com/dev-tips/

Each tip has a textual explanation, and an animated gif if you're a visual learner (I know, I need to scrap gifs and move to regular videos).

There's a lot of tricks there which can hopefully improve your development and debugging workflows. Let me know if there are specific things you'd like to see. A few people have asked for how to find memory leaks.