Programming

Programming

1462 bookmarks
Custom sorting
An Opinionated Way of Organizing GraphQL APIs using Absinthe and Phoenix
An Opinionated Way of Organizing GraphQL APIs using Absinthe and Phoenix
REST has been the predominant architectural choice for API development on the web. GraphQL being the new kid in town has been continually gaining traction over the last few years as an alternative way to build APIs. GraphQL is - "A query language for...
·meraj-gearhead.ca·
An Opinionated Way of Organizing GraphQL APIs using Absinthe and Phoenix
Metaprogramming in Elixir with macros
Metaprogramming in Elixir with macros
Macros are one of the most powerful concepts in Elixir. Its what differentiates the language from the underlying Erlang BEAM…
·medium.com·
Metaprogramming in Elixir with macros
MoonBit
MoonBit
·moonbitlang.com·
MoonBit
Blog
Blog
·moonbitlang.com·
Blog
The Phoenix LiveView LifeCycle Illustrated
The Phoenix LiveView LifeCycle Illustrated
A picture's worth a thousand words. It can be confusing to explain to a LiveView newbie just what the lifecycle of a LiveView process looks like. I made a flow chart to help visualize how an HTTP Request becomes a stateful LiveView
·johnelmlabs.com·
The Phoenix LiveView LifeCycle Illustrated
How can I measure the similarity between two images?
How can I measure the similarity between two images?
I would like to compare a screenshot of one application (could be a Web page) with a previously taken screenshot to determine whether the application is displaying itself correctly. I don't want an...
·stackoverflow.com·
How can I measure the similarity between two images?
How-To: Python Compare Two Images - PyImageSearch
How-To: Python Compare Two Images - PyImageSearch
Learn how to compare two images for similarity using Mean Squared Error and Structural Similarity Index (SSIM) with Python. Code included.
·pyimagesearch.com·
How-To: Python Compare Two Images - PyImageSearch
Programmer's Guide To Theory - The Algorithm of Choice
Programmer's Guide To Theory - The Algorithm of Choice
Programming book reviews, programming tutorials,programming news, C#, Ruby, Python,C, C++, PHP, Visual Basic, Computer book reviews, computer history, programming history, joomla, theory, spreadsheets and more.
·i-programmer.info·
Programmer's Guide To Theory - The Algorithm of Choice
How accurate is the birthday’s paradox formula?
How accurate is the birthday’s paradox formula?
Given a set of r random values from a large set (of size N), I have been using the formula 1-exp(-r**2/(2N)) to approximate the probability of a collision. It assumes that r is much smaller than N. The formula suggests that if you have hundreds of millions of random 64-bit numbers, you will start getting … Continue reading How accurate is the birthday’s paradox formula?
·lemire.me·
How accurate is the birthday’s paradox formula?
Building Self-referential Associations in Elixir/Phoenix
Building Self-referential Associations in Elixir/Phoenix
Self-referential association is used to associate a model with itself. It's pretty common to have this kind of association to build relationships in today's social media applications - Twitter, Mastodon, Facebook, etc. However, the association model ...
·meraj-gearhead.ca·
Building Self-referential Associations in Elixir/Phoenix
blog_post
blog_post
·victorbjorklund.com·
blog_post
Symmetric Properties
Symmetric Properties
If you take a square and rotate it 90 degrees, you get back an identical square. We say the square is rotationally symmetric. Similarly, if you reflect it...
·buttondown.email·
Symmetric Properties
Coding of domain names to wire format at gigabytes per second
Coding of domain names to wire format at gigabytes per second
When you enter in your browser the domain name lemire.me, it eventually gets encoded into a so-called wire format. The name lemire.me contains two labels, one of length 6 (lemire) and one of length two (me). The wire format starts with 6lemire2me: that is, imagining that the name starts with an imaginary dot, all dots … Continue reading Coding of domain names to wire format at gigabytes per second
·lemire.me·
Coding of domain names to wire format at gigabytes per second
sparql_client
sparql_client
A SPARQL client for Elixir.
·hex.pm·
sparql_client
json_ld
json_ld
An implementation of JSON-LD for Elixir and RDF.ex.
·hex.pm·
json_ld
YASGUI
YASGUI
·yasgui.org·
YASGUI
State Machine in Elixir using Erlang’s gen_statem Behaviour
State Machine in Elixir using Erlang’s gen_statem Behaviour
Finite state machine is a common phenomenon in programs that need to maintain multiple states and transition among them based on certain actions. Erlang’s gen_statem provides a generic state machine behaviour. In this article, I will implement a simp...
·meraj-gearhead.ca·
State Machine in Elixir using Erlang’s gen_statem Behaviour