3,063 karma · joined October 11, 2010
Blog: https://madebynathan.com
Email: hn@ndbroadbent.com
In New Zealand we also have https://www.hatchinvest.nz and https://www.sharesies.nz. You might have some similar services in your country.
I would never run this kind of website on free hosting (e.g. GitHub pages.) I think it's dangerous to assume that this business model will continue to exist for the next 500 years. It would be much safer to pay the ~$0.02/mo to store and serve your files from an AWS S3 bucket. A $5/mo DigitalOcean VPS would be safer, but probably overkill. I really like the idea of paying $0.24 per year to cover the exact costs of electricity, storage, servers, and bandwidth. These costs might continue to decrease over time, but they can never be 0 (e.g. Landauer's principle [1].)
I don't know how to estimate the cost of a domain name over the next 500 years. It's definitely not going to stay $10 / year forever. Maybe registrars will start charging higher prices or taxes based on the market value of your domain. Or some company will really want to take over your domain. Like Nissan [2] for example.
Ethereum name service (ENS) [3] could be interesting. Pricing [4]:
* 5+ character .eth names: $5 in ETH per year * 4 character .eth names: $160 in ETH per year * 3 character .eth names $640 in ETH per year
The world seems to have decided that names are worth roughly $10/year, for a single planet with a population of 7.9 billion humans. We'll probably be a multi-planet species at some point during the next 500 years. It's hard to imagine what the universe will look like 5,000 or 50,000 years from now. Imagine there's trillions of sentient beings living throughout the universe, and a "universal internet" (even if information still takes many years to propagate throughout the universe.) Maybe names will become far more expensive.
I think the safest option would be to choose a random string of letters and numbers: 2g39pz6jygjd.com + 2g39pz6jygjd.eth. It would still point to a page that includes your name and all of your content, so you'd still be indexed by search engines. And it's very unlikely that someone will start a company called "2g39pz6jygjd" and try to file a trademark.
This kind of random name would probably continue to be worth around $10/year, or perhaps up to $100 / year. It might continue to cost around $0.20 per year to host your static website on AWS S3 (or similar). Bandwidth would be interesting to think about.
Let's say you're trying to keep a blog running forever. Probably a good idea to keep it very simple and use a very basic CSS them, so each page could be around 20 kb. Serving your page to 50,000 visitors would require 1 GB of bandwidth. But let's prepare for a worst case scenario: Everyone on earth visits your website once a day for a month.
7,900,000,000 * 29.53 days (average number of days in a month) * 20 kB = 57709.5 TB. (That's actually way more than I expected! I find it really hard to understand just how many people there are in the world.)
I used this AWS calculator [6]:
* 0.25 GB monthly storage
* 7,900,000,000 * 29.53 days = 233,287,000,000 requests (let's say we serve a single HTML page that includes inline CSS.)
* 57709.5 TB transfered
S3 Standard cost (monthly): $134,680.98 USD. Or $1,616,171.76 per year.
That was just an exercise to figure out the maximum possible cost of hosting a simple web page. It was a fun tangent but we can ignore all of that.
Let's just say it could cost up to $100 per year. Assuming an extremely safe withdrawal rate of 0.5%, you'll need to ask your trust to invest $20,000 (100 / 0.005) in a mix of ETFs, bonds, cryptocurrencies, gold, etc. That should guarantee that you can continue paying for web hosting through the next 1,000 recessions, nuclear wars, ice ages, etc.
[1] https://www.wikiwand.com/en/Landauer%27s_principle
[4] https://docs.ens.domains/frequently-asked-questions
[1] https://tasmota.github.io/docs
[2] https://github.com/ndbroadbent/Tasmota/commit/bbcf57faffbf5b...
[3] https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418
The iPad had just been sitting in my closet for a few years, since I couldn't update it to the latest version of iOS, and most apps stopped supporting it. I was about to throw it away before I had one last attempt at doing something useful with it. I'm really glad I found the LiveFrame app and was able to get it working.
It also has a web browser that can display almost any webpage (although it would probably struggle with the latest CSS features.) So you could show a dashboard web page to display some information.
I would recommend looking on eBay to see if there are any cheap iPads or Android tablets.
VS Code will still highlight those cyclomatic complexity errors in the editor, so at least you will be able to fix them (or turn them off) without needing to wait for a CI build to finish.
I've been using RuboCop very heavily for the last few years. I've found it very useful as a solo developer, but it also makes it much easier to work with other developers since we never have to waste time talking about style issues.
Here's all the ways I've integrated RuboCop and made it an amazing experience:
I use VS Code with the ruby-rubocop extension, and I've enabled the "Format On Save" option. (This uses Prettier for most other file formats.) This would be unbearably slow with vanilla RuboCop, but I get a huge speed boost with rubocop-daemon. (Especially with the bash wrapper script that I wrote [2].) So now every time I save a Ruby file, the file is auto-formatted instantly to correct any warnings. In case it can't automatically fix a warning, I'll still the warning right in my editor, so I can immediately fix it before moving on.
The second step is a git hook script in `.git/hooks/commit-msg`. I set this up to run RuboCop for Ruby, plus prettier and eslint for JavaScript. If RuboCop fails with a warning, the script retries with `rubocop -A` to automatically correct any errors. Then I run `git diff` to make sure everything looks good before committing the changes.
The final step is to run `rubocop` as part of my CI build, to make sure I didn't miss any warnings (or for any developers who haven't set this up on their machines.) This almost always passes, because the previous two steps usually catch everything first.
I disagree with a lot of the default cops, so I just disable lots of them. But I'm pretty happy with my current setup and RuboCop configuration.
I totally agree that linters would be awful when you have a very slow feedback loop, and you have to wait anywhere from 10 - 60 minutes before you get a notification for a failed build. But they can be really pleasant experience when the feedback loops are under 100ms and most of the warnings are automatically fixed for you. I now lean on it really heavily, and I've even started to take some shortcuts and save keystrokes, because I know how the auto-formatter will tidy up the code.
> 1. I like big, big monitors.
I've realized that I find it uncomfortable to use more than one screen, so I just use one 27″ 4K screen. But occasionally I open my laptop and put it on a stand to show some extra windows.
> 2. I prefer a full size keyboard.
My favorite keyboard is the older version of the Apple Wireless Keyboard powered by AA batteries. It feels really nice to type on it (maybe because I'm used to it.) I recently bought a brand new Apple keyboard because I thought it would be better (and I could recharge it over USB), but it's much worse.
> 3. I prefer a separate mouse.
I use an Apple trackpad, and I love it. I only go back to a mouse if I'm playing a game.
> 4. I prefer big freaking disk drives installed.
I have a 2 TB SSD, which is more than enough for me.
> 5. I put the desktop under my desk, and with a wireless keyboard and wireless mouse, there is much less of a snarl on my desk.
I like to put my laptop on the desk, and I only plug in a single Thunderbolt 3 cable for charging, gigabit ethernet, and my monitor. I really love my CalDigit TS3 Plus dock [2].
It's really nice that I can unplug a single cable and take my laptop to any cafe or co-working space. (Before/after the pandemic.)
> 6. The desktop has an optical drive I still use.
I haven't used an optical drive for about 5 years, and I don't own any optical disks.
> 7. The desktop has lots of USB ports and they're all in use.
My dock has a lot of USB-A and USB-C ports, and it's in a very convenient location.
> 8. I can replace/alter parts of the machine without buying a new one.
That's a great point, and it's one of the major downsides of using an Apple laptop. I do have AppleCare, and Apple's support is really amazing.
> 9. Desktops are cheap.
That's very true! But I was using a 2012 MacBook for 8 years before I upgraded it, and I think I'll probably continue using my current laptop for another 8-10 years. It's expensive, but it's a very high quality machine and I think it will last for a very long time.
> 10. I can build what I want with parts from newegg. Premade powerful computers are always "gaming machines" and I don't want a gaming machine that comes with a graphics adapter that sounds like a 747 taking off.
I certainly can't do that for any kind of laptop (either Apple or other brands.)
> 11. I want an all-metal case because a machine caught fire once.
Nothing to worry about there
> Edit: 12. My desktop doesn't have a microphone or camera, so they cannot be surreptitiously turned on remotely.
MacBooks have a hardware light that turns on when the camera is active, and I haven't heard any reports about hackers being able to disable it. Although one disadvantage with the newest MacBook is that you can't attach a sliding camera cover anymore, because it will crack the screen when you close it.
The microphone can be surreptitiously turned on, but it's not something I'm too worried about.
Before: 1.39 seconds
After: 0.62 seconds
I have this default line in config/initializers/devise.rb:
config.stretches = Rails.env.test? ? 1 : 11
So hashing user passwords was already very fast. But I'm also manually calling BCrypt in some other places, so these calls are now much faster as well.I'm personally looking forward to building a new toy project with Svelte, Sapper, Tailwind CSS, and Snowpack (with TypeScript, Node.JS, and NPM.) This still feels like the future to me.
Am I allowed to distribute GPL programs contained inside a Docker image for on-premise installations? Do I just need to provide proper credit and a link to the source code?
Or is there a commercial license available for Pandoc? (I couldn't find anything.)
UPDATE: I've decided to evaluate pandoc and see if it might be useful for supporting Markdown and Word formats, etc. If it is, then I'll reach out to John McFarlane and ask about a commercial license (or just something in writing), perhaps in exchange for sponsorship on GitHub.
I think Node.js is probably going to stay the winner for now, but that might just be me.
We're thinking about a trip to my home country of New Zealand, but it's a big decision. Our quality of life is very good in Malaysia, even though we spend most of our time in an apartment, and even though there's recently been a spike in coronavirus cases. It's nice to go back to New Zealand for a visit and a short holiday, but I don't really want to get stuck there until the end of 2021 (or even the middle of 2021.)
The Canny founders are absolutely phenomenal startup founders, with a world-class background in product design and engineering background. They executed extremely well, chose an excellent target market, built an incredible product, and marketed it extremely well by sharing their story and progress.
This is like comparing yourself to a star basketball player in the NBA. (Especially considering that the founders came from careers at Facebook.) Meanwhile, most of us are just regular software engineers who are trying to make things work as a solo founder. I don't have a strong background in design and UX, and I've made a lot of mistakes. I'm still proud of my achievements and I think I'm building a great company at a sustainable pace, but it can still be a bit depressing when you see people executing perfectly and growing at an incredible rate.
"Marathons" are an over-used metaphor, but it's a good metaphor. You're almost certainly not going to finish first, even if you're a world-class athlete. But even if you finish last, I think that's still something to be proud of. (Where "finish" could mean achieving profitability, or having an exit.)
One of the people also talked about turning a second one into an AirBnb, so I think that's a great idea. It would be a very unique place to stay, so I think it would be fully booked if you're in a decent location.
Here's another person living in a 727: https://www.youtube.com/watch/?v=rKm5oF2p-II
This one has a much nicer interior: https://www.youtube.com/watch?v=bdwLlI9abgU
According to one of the comments on the first video, they spent 120k on the plane, and another 100k to move it to the forest. I would probably want to spend another ~300k for renovations and everything else (proper foundation, shower, kitchen, water and sewer lines, etc. etc.)
It's not cheap, but that's a lot cheaper than I was expecting. Especially compared to the average house in an expensive city. I think it might also be a lot more fun than living in a "tiny house".
I recently read this "Why We Don't Like Our Underground House" article that was posted on HN: https://dengarden.com/misc/The-Pitfalls-of-an-Underground-Ho... That was a reminder that doing something unconventional can be risky and cause lots of unexpected problems. So it would probably be a good idea to also spend a lot of money on architects and engineers to make sure that everything is done properly and there's no surprises.
[1] https://www.cnet.com/news/tesla-motors-founders-now-there-ar...
Original post on Reddit: https://www.reddit.com/r/3Dprinting/comments/i1apwl/3d_print...
Demo video: https://www.youtube.com/watch?v=ye37Mpj5qCQ
I've always wanted to explore robotics and 3D printing, so now I'm planning to order a Prusa i3 MK3S and build one of these.
---
The Niryo One is another open source robotic arm: https://github.com/NiryoRobotics/niryo_one
You can buy a kit or assembled arm, or 3D print all the plastic parts yourself.
I would be interested to know if they forgot about one small detail. I think the FBI / NSA probably has full visibility into the Tor network and can easily deanonymise any users. Or it could be like the Harvard bomb hoax in 2013 [1]. (They used Tor, but they were also the only person using Tor at the time.)
[1] https://www.theverge.com/2013/12/18/5224130/fbi-agents-track...