HNHacker News
TopNewBestAskShowJobs

samhunta

47 karma · joined June 11, 2016

hnchat:GFKv9baN11j39cBDDCMk Meet: af9bb36f1b99029ca9c30c5b35ca831665ed200681d1609989a46ae0b68a8497
submissionscomments
samhunta··on Show HN: An Almost Ideal React Image Component
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

samhunta··on I built a screenshot API and some guy was mining cryptocurrencies with it
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

samhunta··on Show HN: Hipstafridge – Blockchain powered smart refrigerator
The whitepaper works for me. What browser are you using?
samhunta··on Show HN: Nothing.js – A chainable mock object which always returns itself
Yes this is a much better alternative in my opinion.
samhunta··on Show HN: BestChoice – Phone-chooser that even your grandma can use
Please add the OnePlus brand :)
samhunta··on Using Prettier to format your JavaScript code
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.
samhunta··on Show HN: Quickly build a production ready image classifier from your images
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.
samhunta··on Uber and Lyft drivers' median hourly wage is just $3.37, report finds
An MBA does not guarantee a good job.
samhunta··on A Cookbook for Machine Learning: Vol 1
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...

samhunta··on Tesla Roadster
Also, an actual video of the Roadster in all of it's glory.

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

samhunta··on Tesla Roadster
Looks nothing like a Nissan Z in my opinion.
samhunta··on Tesla Roadster
Fair enough, but how will they ever achieve that without first trying to compete in this outrageously competitive industry?
samhunta··on Tesla Roadster
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.

samhunta··on Show HN: Projects Made with Code
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.
samhunta··on Show HN: Materia – A modern dev environment to build mobile and web applications
IMO "9 simple steps" looks better than "9 steps"
samhunta··on Waud.js: Web audio library
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
samhunta··on DEA will ban chemicals contained in kratom, a popular herbal supplement
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

samhunta··on “It's The Future”
This reminds me of React state. Sagas, selectors, constants, components, containers, routes, reducers, actions, connectors, shoot me.
samhunta··on Charles – Web Debugging Proxy Application
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

samhunta··on Charles – Web Debugging Proxy Application
Betwixt is amazing, you can use the familiar Chrome Dev Tools interface for debugging web requests.

https://github.com/kdzwinel/betwixt