Hacker News new | past | comments | ask | show | jobs | submit | neetodavid's comments login

Sharing Via Wifi has been exactly what I needed twice in the past few months! Having the ios vlc just host a local web page so that any device on the wifi can drag and drop files in a web browser is so cool.


Its too bad (in a way...) they couldn't get private video IDs to leak. It would have made an impressive combination with their bug posted earlier this month (Stealing Your Private Youtube Videos, One Frame at a Time https://news.ycombinator.com/item?id=25728175)

Speaking of... do security researchers sometimes just sit on their discoveries in hopes that they will eventually lead to a bigger payout? I would be kicking myself if I had reported a bug for a relatively small reward that I could have leveraged in combination with another discovery


I built a shitty static site generator, too!

I had no idea what I was doing. Didn't look at how other SSG's work... I just made some template HTML files, stuffed some content in YAML/Markdown frankenstein files, and then used JavaScript string.split().join() calls to stitch together the output files

It worked! It is very satisfying to have one build command that generates the entire site and pushes it to gh-pages for hosting.


reader view in firefox formats it nicely


I enjoyed this paragraph from the "Response to philosophers - GPT-3"

Human philosphers often make the error of assuming that all intelligent behaviour is a form of reasoning. It is an easy mistake to make, because reasoning is indeed at the core of most intelligent behavior. However, intelligent behavior can arise through other mechanisms as well. These include learning (i.e., training), and the embodiment of a system in the world (i.e. being situated in the environment through sensors and effectors).

It reminded me of another post I saw on hacker news (Losing the Narrative - The Genre Fiction of the Professional Class https://news.ycombinator.com/item?id=23662750)

The phenomenon of "intelligent behavior" totally divorced from reasoning is always on my mind. Like "emergent behavior" in immersive sim games, or boids & flocking algorithms.. or schools shuffling classrooms every 14 minutes to work around coronavirus guidelines...


I like this. I was surprised to see that it is html divs when I opened the inspector. Did you make the styling yourself?

I'd like if the text on the recently played list were selectable for easier copying.


Thank you! Yes, I wrote the entire CSS myself without using any frameworks or anything. And yes, noted, I'll make the text on the recently played list selectable.


I took a short look at this and it appears to be a work in progress that varies between browsers...

Chrome implements a "clipboard-read" permission that can be requested by calling navigator.clipboard.read(). When a page calls that it will display a permission request dialog (like those asking for permission to show notifications on seemingly every single news web page). A little clipboard icon will also appear in the nav bar showing the status of the permission (visible after a read attempt is made during that visit)

Firefox is apparently on track as well, although for now the clipboard.read function is not implemented for pages and can only be called by extensions. I'm not sure what the permission dialog for extensions is like.

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_A...

So... it may be safe. But it is a work in progress and each browser is different. I've only checked the most well-documented method for reading the clipboard... maybe there is some other half-implemented feature or event listener that happens to leak some clipboard data...


Being able to automate tests for memory leaks is very helpful but I would much rather incorporate the browser dev tools than not when debugging memory. Doing it only in javascript feels very janky (weak maps, attaching giant array objects to things, waiting ?? amount of time for the automated GC to run).

I was debugging memory leaks in some pretty large javascript products and while I did initially start with methods like this post, I only started to make reliable progress when I became familiar with the heap snapshot tool. Diagnosing problem is trivial (just filter the heap snapshot by a Class name and count the instances) and it is The Tool To Use to actually resolve it (tracing the chain of references in the retainers view)

In the future if I need to write automated tests to identify memory leaks I will look into automating the Dev Tools rather than fumbling with WeakMap or performance.memory.usedJSHeapSize


I used the chrome devtools protocol to write a memory leak detector for my game. Has helped me quite a bit. If you like I can share the source.


Here it is: https://gist.github.com/connorjclark/549fa524a0b8fdc8bbb1b48...

I left some annotations in a comment. Hope it helps!


+1.


Replied to my comment with link.


Would be very useful for me


Replied to my comment with link.


The devtools protocol is super simple. It's very easy to automate everything devtools can do. You can do it with something high level like puppeteer/selenium, or just directly with a websocket to the browser.

The API is documented here:. https://chromedevtools.github.io/devtools-protocol/


It'd be better if the committee would just stop pretending that JS has some sort of holy determinism that would go away if we were allowed weak references. They're going to have to put it in soon anyway in order to support wasm refs.


I guess I'm a noob but I always stumble when trying to use the chrome dev tool profiling.. I love other aspects of the dev tools but not that


And we should replace all of our meals with Soylent!


It's intellectual junk food at best.


I love the window displays they have at A&C. I picked up Patapon 2 there a while back.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: