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. https://github.com/rvirding/luerl 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.
Please give it a try. If anything is not working or is confusing, please open issues on https://github.com/cogini/elixir-deploy-template or ask questions. I am reachfh on the Freenode group and jakemorrison on discord (in UTC+8 time zone).
Deployment is never going to be a one-size-fits-all solution, but I want it to be as easy as possible.