HNHacker News
TopNewBestAskShowJobs

lionleaf

97 karma · joined September 24, 2012

[ my public key: https://keybase.io/lionleaf; my proof: https://keybase.io/lionleaf/sigs/GGwMz4qQq-Z0L9ktOgWjgC3yUA8WjeZLnMZE8nfbdsQ ]
submissionscomments
lionleaf··on JavaScript Demos in 140 Characters
Shadertoy might fit that category? Runs in the browser, are all fragment shaders and without a size limit afaik, but they tend to be small-ish

https://www.shadertoy.com/

lionleaf··on JavaScript Demos in 140 Characters
Fun to see this on HN! :D

Apologies for the quick reboot of the servers. I learned from last time this happened and resized the digitalocean droplet.

lionleaf··on Massachusetts gives workers new protections against noncompete clauses
I really like the way Norway has done it. A couple of years back they introduced a law that to make non-competes enforceable the company would have to pay you a full salary for the duration that you're blocked out of other work. Non-competes has function, but it's far too cheap for the company and far too expensive for the employee. Now the employer has to consider whether it's a position it's worth to protect or not, rather than just put it in the default contract
lionleaf··on Alexa, are you listening?
Well, duh, of course it is. Monitoring writes to memory would be pretty interesting
lionleaf··on Alexa, are you listening?
Yeah, that's good to know. Anyone have some insight on the implementation of the Google Home mute button?
lionleaf··on Alexa, are you listening?
I recently got a Google Home, and I've been thinking about how to potentially build a "is-the-microphone-actually-recording?" device. A basic one should be possible just by watching the power draw, but that would probably trigger if it decides to download a firmware update or whatever too. I expect this has been done before?
lionleaf··on Dwitter – A social network for short JavaScript demos
Using the <iframe> "sandbox" property. At least stops things like alert('hey') and a full-page redirect
lionleaf··on Dwitter – A social network for short JavaScript demos
That's something I've been thinking about. Webworkers don't have direct access to the Canvas though, but it seems like you can work around that by passing image data. Killing infinite loops would be great
lionleaf··on Dwitter – A social network for short JavaScript demos
The dweets are stopped but not unloaded as you scroll away. You're entirely right though, needs some proper unloading.

Edit: Link to the issue https://github.com/lionleaf/dwitter/issues/66

lionleaf··on Google Research and Daydream Labs: Seeing eye to eye in mixed reality
That is really cool! They are using a realistic 3D model of the persons face and eye-tracking in the VR headset to make a good guess at their facial expression, effectively reconstructing the face that's hidden by the headset.

Not something you can easily do as a consumer yet, but for high quality mixed reality production this seems like a great boon.

For an explanation of mixed reality videos are made I recommend this: https://www.youtube.com/watch?v=8T7ux3DXP_w

lionleaf··on Dwitter – A social network for short JavaScript demos
Changed to sfz :)
lionleaf··on Dwitter – A social network for short JavaScript demos
Makes me quite nervous too. So far each dweet is run in a sandboxed iframe loaded from a separate subdomain.

There are definitely things you can do, and I'm aware of some annoying ones. I'll just manually delete them at this point. Any security conscious person would view it with noscript and just read the javascript ;)

lionleaf··on Dwitter – A social network for short JavaScript demos
Oh, that's cool! I like the integration with twitter
lionleaf··on Dwitter – A social network for short JavaScript demos
Brilliant dweet! Part of the challenge is the manual minification. A larger textarea might be worth it especially as you can use linebreaks instead of ; for better readability
lionleaf··on Dwitter – A social network for short JavaScript demos
Sorry about your lost dweet :( Accidental infinite loops while editing can be a pain. A "reload" button isn't a bad idea, or a "recover dweet draft" functionality.
lionleaf··on Dwitter – A social network for short JavaScript demos
Oh, got the 500 error dump. It's the @ in your username, that'll teach me. For now avoid special characters in your username ;)

Edit: In case you were stuck in a 500-loop I quickly changed your username to H2O, hopefully it works now

lionleaf··on Dwitter – A social network for short JavaScript demos
Didn't mean to post with that account. Oh well.
lionleaf··on Intel's roadmap for Optane SSDs with 1,000x performance
"Supporting filesystems in persistent memory" (2014)

https://lwn.net/Articles/610174/

lionleaf··on Deep Reinforcement Learning: Pong from Pixels
Note that he in this pong example in particular every frame he gives the network and option to either go up or down, but no option for standing still. So it _has_ to be jittery.

But as the other people have commented, adding a small penalty on every move and giving it the option to stand still (along with some normalization?) might give a much smoother result.

lionleaf··on Daydream Is Google’s Android-Powered VR Platform
This is a big deal. It basically adds the two factors that made GearVR better than cardboard to any VR ready Android phone: OS integration and better IMU sensors. It basically puts high quality (but not cutting edge) VR in everyones pocket, all you need is a dumb holder with lenses.

My prediction is that this will play a huge role in mass adoption of VR!

lionleaf··on Oculus Rift: Available for pre-order
At the moment the resolution simply isn't there for multiple virtual high resolution displays. I did some math a while back, and if I wanted the 1080 display I had at work at the same distance from my eyes in virtual space, I would need 5k by 5k pixels per eye.

Add a high refresh rate and that's far higher datarate than we can handle right now. And you'd need display tech that's pretty insane.

While it's not a replacement yet, if you're happy with some oldschool low res displays it's probably fine. Someone should do the math of the resolution you'd get in some examples.

lionleaf··on 15 Biggest Ships Create More Pollution Than All Cars in the World (2013)
Here a link to the sketch if anyone's interested: https://www.youtube.com/watch?v=WcU4t6zRAKg
lionleaf··on Cable TV's plan to kill “over the top” internet streaming
How are you subsidizing the heavy users when they don't cost more to the provider? Bandwidth is not a scarce resource.
lionleaf··on It's Time to Start Talking About Geoengineering
The reason geoengineering scares me: https://xkcd.com/349/
lionleaf··on SpaceX’s Pad Abort Test
I'm assuming it's Jebediah Kerman
lionleaf··on There's a map for that
Reminds me of a TED talk[1] were he ends up discussion the use of git or similar tools in the government.

[1] http://www.ted.com/talks/clay_shirky_how_the_internet_will_o...

lionleaf··on Facebook Users Report Seeing Old Private Messages Showing Up On Timelines
Yeah, I'm really certain too. Some of them seem surprisingly private though, so no wonder people get scared. It's still a bad thing that friend banter from long ago suddenly shows up for all your new friends / colleagues / family to see...
lionleaf··on Facebook Users Report Seeing Old Private Messages Showing Up On Timelines
I too thought I found private messages on my timeline. But it turns out they were indeed wallposts. It shows how much facebook has changed from a friends-only environment where you used the wall of people for semi-private chats, to a place where you have to be carefull and try to present yourself in a decent manner. Noone would ever use the wall in the same way it was used back then.