Better HN
topnewbestaskshowjobs
Log inSign up

umaar

667 karma · joined Jul 23, 2011 (15y ago) · 170 submissions

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 ]

Submissions

1.

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

3 points · by umaar · 6mo ago · discuss

comment 1y ago · link · parent

Was able to build a personal MCP server that connects to the Jules API, letting me dispatch tasks to Jules, from Copilot Chat in VS Code.

Video here: https://www.youtube.com/watch?v=RIjz9w77h1Q

3.

Fontleak: Exfiltrating text using CSS and Ligatures(adragos.ro ↗)

3 points · by umaar · 1y ago · 1 comment

comment 1y ago · link · parent

Drawing an SVG of a pelican on a bicycle. Claude 3.7 edition: https://x.com/umaar/status/1894114767079403747

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Was the number used to sign up for, and receive communications from credit card companies? Is the ban related to signing up for +100 cards?

https://www.dannyguo.com/blog/my-credit-and-debit-card-colle...

7.

Fixing your website's JavaScript performance(developer.mozilla.org ↗)

3 points · by umaar · 2y ago · discuss

comment 2y ago · link · parent

I made a video showcasing some advanced techniques to use fonts on the web, without compromising performance. Covers interesting font metrics like ascenders and descenders. Fascinating to see how much information is contained within a font file!

https://www.youtube.com/watch?v=wSOIbdOaKR8

9.

Brand New Performance Features in Chrome DevTools(debugbear.com ↗)

2 points · by umaar · 2y ago · discuss

10.

Brand New Performance Features in Chrome DevTools(debugbear.com ↗)

3 points · by umaar · 2y ago · discuss

comment 2y ago · link · parent

Really like the simplicity of your website. I think when you first announced it, you mentioned you might open source Magic Loops, might you do that?

comment 2y ago · link · parent

This is a tutorial I wrote for Firebase. It shows how to build three different AI-related web apps: A chatbot, a review summariser, and a video summariser.

13.

Build AI-powered web apps with Firebase Extensions(firebase.google.com ↗)

1 points · by umaar · 2y ago · 1 comment

comment 3y ago · link · parent

https://umaar.com/blog/

There's also hundreds of developer tips here https://umaar.com/dev-tips/

comment 3y ago · link · parent

You can do this with Workspaces and it works well. Made a video on this here: https://moderndevtools.com/lessons/12

comment 3y ago · link · parent

Using DevTools, you can extract all styles, even if they're scattered across loads of tailwind utility classes. Made a video on how to do this here: https://umaar.com/dev-tips/261-devtools-copy-all-styles-for-...

17.

Over 270 tips on Web Development(umaar.com ↗)

3 points · by umaar · 3y ago · discuss

comment 3y ago · link · parent

If anyone wants to self-host these YouTube summary tools, made a video on exactly how to do that here https://youtu.be/dqtliRSLmQo

comment 3y ago · link · parent

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 }

20.

Consume streaming data from OpenAI with vanilla JavaScript(youtube.com ↗)

1 points · by umaar · 3y ago · 2 comments

comment 3y ago · link · parent

This blog post shows S3 Glacier Deep Archive costs $2.05 USD for 2 TB but on the AWS pricing page it's showing as 2,000 GB * $0.0018 per GB = $3.60 ?

Edit: this is for London pricing, guess it's a bit higher.

comment 3y ago · link · parent

This is a great project and it was fun playing around with it.

When Meta started discussing this in 2021, the HN sentiment [1] was quite...cautious, making connections to how Meta can't be trusted with kids drawings. Has something changed?

[1] https://news.ycombinator.com/item?id=29580619

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Agreed, giving the user a choice would be best here. Something tells me most users would not change it from whatever the default is, but yeah still good to expose this as a setting which should be doable. Thanks for the input!

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

27.

WhatsApp with AI: ChatGPT, image creation and speech to text(chatbling.net ↗)

1 points · by umaar · 3y ago · 2 comments

comment 3y ago · link · parent

Made something similar recently, but for WhatsApp: https://chatbling.net/

What behaviour would users prefer when uploading a voice message, a) the voice message is transcribed, so speech to text? Or b) the voice message is treated as a query, so you receive a text answer to your voice query?

I've done a) for now as mobile devices already let you type with your voice.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Thank you!
123456