News for hackers. Stuff that matters.

samhunta

Re:Show HN: An Almost Ideal React Image Component on Friday June 01, 2018 @08:51PM (#17211871)
This is a great start. Some lightweight features that would make this even more ideal (for me) would be:

- retina/3x support - support for styled components extend feature (if can be made a lightweight implementation) - maybe default max width of 100% on mobile? - optional ability to overlay an empty full size block so the image cant easily be right clicked and saved

Possible deterrents -

1. Use cgroups to limit cpu usage on a process.

2. Block coinhive

3. Implement captchas

4. Cloudflare

5. Adblock

6. API throttling and 1 minute cache per URL

7. Disallow 1 IP from creating more than X accounts at a certain speed per day

The whitepaper works for me. What browser are you using?
Yes this is a much better alternative in my opinion.
Please add the OnePlus brand :)
Re:Using Prettier to format your JavaScript code on Friday March 09, 2018 @04:32AM (#16550667)
We started using Prettier as a pre-commit git hook and the results have been amazing. There are developers in PRs who will not be comfortable with the eslint settings, have linting turned off or will otherwise ignore linting. Prettier just streamlines so much and you can disable the warnings in eslint that prettier handles automatically. It's insanely useful.
Yes but why represent data this way when HTTP can already handle binary? Does base64 actually compress binary data enough to make these optimized requests? I'm genuinely asking because I have not googled it yet.
An MBA does not guarantee a good job.
Re:A Cookbook for Machine Learning: Vol 1 on Friday November 17, 2017 @02:16AM (#15719821)
I would love to learn more about machine learning as a web developer, but simply put it's a different industry with entirely different constructs.

I found a great article[1] that at least helped me build a simplistic understanding as a modern developer.

[1]. https://simpleprogrammer.com/2017/10/02/machine-learning-mod...

Re:Tesla Roadster on Friday November 17, 2017 @01:44AM (#15719628)
Also, an actual video of the Roadster in all of it's glory.

https://twitter.com/DavidHodge/status/931391188065705984

Re:Tesla Roadster on Friday November 17, 2017 @01:43AM (#15719620)
Looks nothing like a Nissan Z in my opinion.
Re:Tesla Roadster on Friday November 17, 2017 @01:34AM (#15719577)
Fair enough, but how will they ever achieve that without first trying to compete in this outrageously competitive industry?
Re:Tesla Roadster on Friday November 17, 2017 @01:19AM (#15719481)
Toyota owns Lexus, Ford had Jaguar and Land Rover, Hyundai owns Genesis, Volkswagon has Bentley, Fiat owns Ferrari. Just like other car manufacturers, Tesla does it all.

edit: Ford didn't start Jaguar.

Re:Show HN: Projects Made with Code on Monday October 10, 2016 @01:00PM (#12678326)
This is awful for things like screencasts, I agree with jhasse that it should be implemented by the browser if implemented at all. We shouldn't fix what really isn't broken.
IMO "9 simple steps" looks better than "9 steps"
Re:Waud.js: Web audio library on Saturday September 03, 2016 @04:24PM (#12421006)
My only complaint is it is written in Haxe instead of ES6. It would make sense to code it in Haxe if it were to be ported to PHP, C++ and the likes but it appears to be strictly for web audio
I've used Kratom and it truly does stop opiate and alcohol withdrawals in it's tracks.

There is a problem though; These addicts with little knowledge of Kratom will attempt to get high and overdose. This is definitely a problem and Kratom should require some license or warning, but to ban the chemicals is crazy counter-productive when we have a real epidemic

Re:“It's The Future” on Wednesday August 17, 2016 @02:59PM (#12307363)
This reminds me of React state. Sagas, selectors, constants, components, containers, routes, reducers, actions, connectors, shoot me.
Re:Charles – Web Debugging Proxy Application on Sunday June 26, 2016 @11:49AM (#11981265)
Betwixt is a great tool that works on all operating systems and allows you to use Chrome Dev Tools to debug web requests

https://github.com/kdzwinel/betwixt

Re:Charles – Web Debugging Proxy Application on Sunday June 26, 2016 @11:46AM (#11981255)
Betwixt is amazing, you can use the familiar Chrome Dev Tools interface for debugging web requests.

https://github.com/kdzwinel/betwixt