rexxars | 1 year ago | on: Smuggling arbitrary data through an emoji
rexxars's comments
rexxars | 1 year ago | on: React 19 Is Released
rexxars | 2 years ago | on: WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport
Beyond handling the custom headers aspect, it also supports any request method (POST, PATCH..), allows you to include a request body, allows subscribing to any named event (the EventSource `onmessage` vs `on('named event')` is very confusing), as well as setting an initial last event ID (which can be helpful when restoring state after a reload or similar). And you can use it as an async iterator.
I love the simplicity of Server-Sent Events, but the `EventSource` API seem to me like a rushed implementation that just kinda stuck around.
rexxars | 2 years ago | on: Opal Tadpole – A webcam for laptops
Most importantly, the new camera does not need any software - it’s just a high quality webcam.
rexxars | 2 years ago | on: Show HN: PC Builder AI
What is the backing AI/data source? I tried using ChatGPT for this, but given it's cutoff is September 2021 it doesn't really give you the most relevant hardware.
rexxars | 3 years ago | on: Refreezing Earth's poles feasible and cheap, new study finds
I wonder what has changed, apart from going from $8 billion to $11 billion.
rexxars | 3 years ago | on: Take more screenshots
I'm sure your parents or someone from their generation have actual, physical photo albums from their past - and that the experience of browsing through these photos brings back things that they haven't necessarily _forgotten_ about, but that they wouldn't have brought into active memory unless they were browsing through them.
Over the years I have experienced and built many things that I do not deem "important" to me, yet when I see them mentioned (even in writings by myself), it takes me back to that point in time - all the feelings, learning and discoveries that it brought to life.
An example is scrolling through a list of my repositories on GitHub. Some of the projects on there I have "forgotten" about, but with the mention of it I am instantly brought back and remember a whole lot more details - motivations, feelings, the ecosystem...
rexxars | 11 years ago | on: React Components
Want to render a sparkline of some data? Sure, you could mess around with existing libs and see if you can get them to work nice with React, or you could just pull in something you can expect actually works, like react-sparkline.
rexxars | 11 years ago | on: React Components
rexxars | 11 years ago | on: React Components
rexxars | 11 years ago | on: React Components
rexxars | 11 years ago | on: React Components
It has it's drawbacks/limitations - eg you want to prevent adding it for things that needs to be parsed/used verbatim, like date/timestamps, urls, "ids" etc - but it's still a pretty fun trick.
[0] https://www.sanity.io/docs/stega
[1] https://github.com/sanity-io/content-source-maps