πŸŽ™οΈ

Elixir Liveview Socket Reconnect

Elixir Liveview Socket Reconnect

The Phoenix LiveView Reconnection Bug: A Deep Dive

I encountered a critical bug in a Phoenix LiveView settings page that controlled hardware via MQTT. When the WebSocket connection dropped and LiveView automatically reconnected, stale form values were being sent back to the hardware, overwriting the current hardware state.

Read more β†’

Elixir LiveView Single Binary

Elixir LiveView Single Binary
We had two repos of Elixir, seventy-five LiveView components, five sheets of high-powered Phoenix channels, a saltshaker half-full of SQLite databases, and a whole multicolored collection of Burrito deployables, Tauri binaries, WebView wrappers, hot-reloaders… Also, a quart of WebSockets, a quart of GenServers, a case of Ecto queries, a pint of raw BEAM bytecode, and two dozen supervisors. The only thing that really worried me was the WebView. There is nothing in the world more helpless and irresponsible and depraved than a developer in the depths of a cross-platform binge, and I knew we’d get into that rotten stuff pretty soon.
Read more β†’

Tax-Free Income Scheme: Step-by-Step Guide

Tax-Free Income Scheme: Step-by-Step Guide

For Digital Nomads, Freelancers, and Remote Business Owners Non US Citizens only

  1. Set Up Your Tax-Free Business Entity Step 1: Form a US LLC Why? US LLCs are flexible, low-cost, and avoid corporate tax if structured correctly. How? Choose a State: Wyoming (no state tax, privacy) Delaware (strong legal framework) New Mexico (cheapest, but less banking flexibility) Hire a Registered Agent: Required for compliance (cost: $50-300/year) Obtain an EIN: Apply for an Employer Identification Number (EIN) via IRS Form SS-4 (free) Alternative Structures: UAE Free Zone Company: 0% corporate/personal tax, but higher setup costs (~$15k) Estonia e-Residency: 0% corporate tax until profits are distributed 2.
Read more β†’

Connect Livebook to Phoenix on Vps

Connect Livebook to Phoenix on Vps
Livebook is very powerful application which can be used in many different ways with your Phoneix project. I have few apps running on my VPS and sometimes I would like to run some functions without creating interface for them from admin side, such as cache clean up. Perhaps run some analytical queries to the database and much more.
Read more β†’

Ultimate Tech Scaling Guide

Ultimate Tech Scaling Guide
Read more β†’