Let's look at how we can use `:noreply` and `GenServer.reply` to allow a GenServer to continue working even while its `call`ers wait for the result of long-running operations.
Tools to visualize an HTML document tree (DOM tree)
I want to visualize the document structure of a HTML website.
What I would like to have is something like this:
Are there any known tools that do this and where the results can be saved as a bit...
A visualizer to help you learn how the DOM Event system works through exploration. Explore event phases, stopping events, canceling events, passive events and more. Explore DOM Events →
In this post, we delve headfirst into the BitTorrent protocol, understanding the process of downloading a torrent by building a minimal torrent client from scratch.
Demystifying Expressions: The Foundation of Programming Languages
Introduction: In the realm of computer programming, expressions serve as the fundamental building blocks that represent computations and control flow within a program. Understanding the nature and classifications of expressions is vital for every pro...
Configuring Phoenix apps: Two small adjustments with big effects | bitcrowd blog
As other languages, Elixir comes with an application configuration system used to statically configure applications at compile-time and runtime. The system consists of the Config module and various scripts in the config/ directory interpreted by the Mix compiler. Phoenix adds a conventional structure on top, pre-populating configuration files and organizing them by Mix environment.
The idea So everything started off with the idea that I can somehow fake uptime of a machine by updating the time against a “corrupted” NTP that will lie about the time. Since there isn’t such a thing as a lying NTP server I decided to create one.
This will be an exercise in reverse engineering a protocol, some Linux command line tricks, bitstring manipulation in Elixir, and some various other tricks.
In software, it is common to represent time as a time-stamp string. It is usually specified by a time format string. Some standards use the format %Y%m%d%H%M%S meaning that we print the year, the month, the day, the hours, the minutes and the seconds. The current time as I write this blog post would be … Continue reading Parsing time stamps faster with SIMD instructions