I wrote a bit this week about my struggles in finding a fast, safe way to do a hex dump from within an Elixir application. The articles goes through a few possibilities, presents their drawbacks, and then lands on a final DIY solution.
Here’s a tangentially related follow-up to my last post. I’ve been working on this for a while, and publishing a lot of content leading up to it. Check out my newest article on “Connecting an Elixir Node to the Bitcoin Network”.
It’s a big article that covers a lot of ground, but I’m extremely excited about it. Let me know what you think. Hopefully someone finds it interesting or helpful. I’m sure I’ll continue down this vein in future articles.
Another alternative is to use Luerl which a complete standard Lua 5.2 implemented in Erlang. Can be truly sandboxed if necessary. GitHub - rvirding/luerl: Lua in Erlang · GitHub Yes, it’s by me. I could not add a comment to the blog post.
Hi everyone! I have been casually learning Elixir for a while and I also started blogging about it recently. I’d love to use it in production some day. My first article is an introduction to Plug. Enjoy!
I’ve been playing with property-based testing in my personal projects lately. I found a perfect opportunity to put it to use when writing a decoder for the Bitcoin BIP-39 encoder I previously built and wrote about.
Property testing actually found a bug in my original implementation that I definitely wouldn’t have caught through manual testing! This was an eye opening experience for me for sure.
More Bitcoin/Elixir fun. This week I decided to beef up our in-progress Bitcoin node by swapping out the GenServer behavior with @fishcakez’s Connection behavior. This lets me be much more nuanced about how I handle connection problems with peers, and also turns my synchronous connection process into an async process. Check out the full article if that sounds interesting.
Over the last few weeks, we have been building a web application in one of our clients and ended up duplicating some template code. These new pages had something in common between them, but not with the rest of the application. We needed an inner layout to reuse the template code between these pages, however, Phoenix doesn’t come with this feature. In this post, you’ll learn how you can build nested layouts in Phoenix and when you should use them.
And another one! This time we swap our a single-node supervisor for a DynamicSupervisor and start recursively connecting to other peers throughout the Bitcoin network.
This article comprises of things that you’ll encounter while working with Strings and Raw bytes explaining with real situational examples. I tried to design the images, to focus on what we are talking. Hope you like them.
This is a gentle introduction to getting your Phoenix app up and running on a $5/month server at Digital Ocean. It starts from zero, assuming minimal experience with servers. It assumes you are running macOS.