Readit News logoReadit News
realPubkey commented on Show HN: Offline JavaScript PubSub between browser tabs   simon-frey.com/tabsub/... · Posted by u/l1am0
Minor49er · 5 months ago
The audio demo makes me think of Bandcamp which will pause music that you're playing if another Bandcamp tab starts playing a song separately. Must be a similar mechanism under the hood
realPubkey · 5 months ago
This is likely done with the WebLocks API
realPubkey commented on Ask HN: Small Ideas vs. Big Ideas?    · Posted by u/amukbils
realPubkey · 6 months ago
By buildings small things, you will find ideas for bigger things that people actually need.
realPubkey commented on Server-Sent Events (SSE) Are Underrated   igorstechnoclub.com/serve... · Posted by u/Igor_Wiwi
condiment · 8 months ago
So it’s websockets, only instead of the Web server needing to handle the protocol upgrade, you just piggyback on HTTP with an in-band protocol.

I’m not sure this makes sense in 2024. Pretty much every web server supports websockets at this point, and so do all of the browsers. You can easily impose the constraint on your code that communication through a websocket is mono-directional. And the capability to broadcast a message to all subscribers is going to be deceptively complex, no matter how you broadcast it.

realPubkey · 8 months ago
Yes most servers support websockets. But unfortunately most proxies and firewalls do not, especially in big company networks. Suggesting my users to use SSEs for my database replication stream solved most of their problems. Also setting up a SSE endpoint is like 5 lines of code. WebSockets instead require much more and you also have to do things like pings etc to ensure that it automatically reconnects. SEEs with the JavaScript EventSource API have all you need build in:

https://rxdb.info/articles/websockets-sse-polling-webrtc-web...

realPubkey commented on Misperception of the facial appearance that the opposite-sex desires   journals.plos.org/plosone... · Posted by u/cainxinth
maeil · 9 months ago
Yep, point being it should be part of the title, as that's the degree to which it impacts results, and the title is what has the biggest impact.
realPubkey · 9 months ago
No. The title is the title, not the context. If people do not read the first 5 sentences of the introduction, you cannot help anyway.
realPubkey commented on Lucid dreaming app triples users' awareness in dreams, study finds   psypost.org/lucid-dreamin... · Posted by u/mikhael
ThrowawayTestr · 9 months ago
I'm a regular user and I dream if I take a nap and haven't smoked
realPubkey · 9 months ago
Imagine what you could dream about if you stopped THC.
realPubkey commented on Lucid dreaming app triples users' awareness in dreams, study finds   psypost.org/lucid-dreamin... · Posted by u/mikhael
smithcoin · 9 months ago
I used to be able to lucid dream quite regularly. I had a friend tell me that looking at your hands throughout the day would help as when you looked at them in your dreams you would realize it.

Now as I’ve grown older I don’t even dream anymore (I suspect due to THC use) but even on nights where I go to bed stone cold sober - nothing happens. I don’t dream. Does anybody else find themselves lacking the ability to dream at all?

I don’t mind it because while I do miss lucid dreaming and pleasant dreams, I completely miss out on the ability to have a nightmare.

realPubkey · 9 months ago
You have to quit THC for at least two weeks until you start dreaming again.
realPubkey commented on LocalStorage vs. IndexedDB vs. Cookies vs. OPFS vs. WASM-SQLite   rxdb.info/articles/locals... · Posted by u/todsacerdoti
micahdeath · 10 months ago
wow... the links on this page are blurry until you select them? (The note info pain in the middle has 2 links and are blurry on my screen.)
realPubkey · 10 months ago
Wow. This should be fixed. Which browser/OS are you using? Are you in dark mode?
realPubkey commented on There Are Probably Dinosaur Remains on the Moon   iflscience.com/we-are-ple... · Posted by u/geox
Qem · a year ago
So instead of the BS about DNA preserved in ambar (it doesn't actually work), Jurassic Park should have dinosaur DNA recovered from frozen samples collected from a shaded moon crater?
realPubkey · a year ago
Half-life of DNS bondings is about 10k years.

u/realPubkey

KarmaCake day602January 27, 2017View Original