News for hackers. Stuff that matters.

djanowski

Re:.localhost Domains on Thursday April 10, 2025 @02:37PM (#43646860)
Recently I started to work on a very simple tool to do this with a single command: it'll start all your projects in a given directory and expose them via HTTPS on https://[project].localhost

No daemons, and the only piece of configuration is adding a file to /etc/resolvers: https://github.com/djanowski/hostel

I've been using it for myself so it's lacking documentation and features. For example, it expects to run each project using `npm run dev`, but I want to add Procfile support.

Hopefully other people find it useful. Contributions very much welcome!

Tesla S Falls Short of Luxury Rivals on Tougher Safety Test

https://www.nytimes.com/2017/02/01/business/tesla-s-safety-test.html?module=WatchingPortal&region=c-column-middle-span-region&pgType=Homepage&action=click&mediaId=thumb_square&state=standard&contentPlacement=19&version=internal&contentCollection=www.nytimes.com&contentId=http%3A%2F%2Fwww.nytimes.com%2F2017%2F02%2F01%2Fbusiness%2Ftesla-s-safety-test.html&eventName=Watching-article-click

( Read More... | no comments | 3 points | on HN )
Re:Error Handling in Node.js on Friday November 04, 2016 @06:48AM (#12871599)
I'm surprised such an in-depth article doesn't even mention promises. Upcoming async/await (already available via transpilation) will make error handling in Node sane again.
That's a good first step.

However, flow is more than knowing what you're working on.

Maybe there are techniques to not lose that state of mind so easily?

Re:Human Error on Tuesday December 01, 2015 @01:22PM (#10657581)
I happened to be reading The Design of Everyday Things at the same time as Understanding Air France 447. It was surprising to see how the concepts explained in the book by Don Norman applied perfectly to explain the errors made by the pilots -- even though airplanes are not everyday things.
Re:Managing Redis Reconnecionss from Ruby on Tuesday August 25, 2015 @04:54PM (#10119376)
Can you fix the typo in the title?

Older »