Erlang

Railway oriented development with Erlang

by Oleg Tarasenko<p>This blog suggests an alternative means by which you can structure your programs, inspired by the Elixir pipe macro ‘|>’ but without …

Programming

Unable to compile mod_mam_sql in ejabberd-18.01

ERROR - function sql_insert__mark_/2 undefined. (LINE NO - 242,217)<br>- unknown type specifier 'H' (LINE NO - 150)I am trying to compile this module …

Sql

Gluon VM - Virtual machine for BEAM

Not published yet by<p>Gluon — A pocket-size BEAM VM<p>Presenting a hobby project that I’ve been doing for several months now. It is named after “gluon”, a …

Physics

erlang change a fun environment

Would it be possible to change the environment variables of an erlang fun without interfering with the code concerning the function definition and …

Erlang

Erlang ssl: password option for private key

ContextUsing Elixir and Brod (which relies on Erlang's ssl module), I'm trying to connect to a SSL-enabled Kafka broker. This works if, and only if, …

Linux

distributed erlang. Client cant see registered pid from server

I newbie in erlang. I cant understand why my program dont work. Help me please.Server do register(atom, PID)In print "registered()." I can see alias …

Linux

Introspecting Elixir — cheatsheet

OK, so you wrote your amazing Elixir or Phoenix application and deployed it. It all starts clean & nice but sooner or later tricky runtime issues …

Software Development

How to limit process memory in Erlang

I would like to know how I can limit the maximum memory (heap) a process can use to allocate objects. I looked into spawn_opt with max_heap_size as …

Erlang

Erlang - Get record with highest value and record with lowest value

I want to display a price-range of a list of product-records.Let's say I have this list of products with a binary value for amount / price.My goal is …

Erlang

Why Erlang / Elixir observer memory usage numbers do not add up?

I am starting out with Elixir and observing some strange behavior when connect to my remote production node using iex.As in the screenshot below, the …

Erlang

Erlang distributed with explicit permissions

ProblemI have one machine, that runs numerous apps, for example: app A, B, C. Running Erlang distributed will result in any app able to make :rpc on …

Apps

Erlang: Cowboy increase POST max size

How do you increase the max post size of a string in Cowboy?I am referencing this issue here: https://stackoverflow.com/a/17810109/2115915This is my …

Erlang

How to view database created using Amnesia

I'm very new to Amnesia and Elixir. I write a custom mix task,Mix.Tasks.PopulateDB, which just populate some test data to the Database, which I …

Databases

Elixir: compile warning "the result of the expression is ignored "

I'm implementing a crash function in a GenServer to test the behavior of the supervisor and registry that will manage this process. Work is done in …

Software Development

Module build failed: @import "~torch/assets/css/app"

Hello I am trying to run a legacy code on phoenix and I am getting the error:<p>ERROR in ./web/static/css/app.sass Module build failed: …

JavaScript

Extract values from list of tuples continuously in Erlang

I am learning Erlang from a Ruby background and having some difficulty grasping the thought process. The problem I am trying to solve is the …

Time I

How to create Erlang Views in CouchDB

I'm trying to translate my couchdb views to Erlang due to the multiple couchjs process running on my server.I navigated through some tutorials and …

CouchDB

Escalus 4.0.0: faster and more extensive XMPP testing

By Konrad Zemek<p>Escalus 4.0.0 is the newest version of our XMPP client library for Erlang, a component of our MongooseIM platform of tools and …

Software Development

type ip_address() undefined type ip_port() undefined

I am trying to build a piece of Erlang code on Ubuntu 14.04. I got the following error. It seems to be something wrong with the header file. I can …

JavaScript

not able to call correct function?

So i have this function that looks for this specific pattern and return ok.and i am calling this function in this way:But i am getting exception …

Erlang

Unable to start Service after uninstalling and then Re-installing RabbitMQ

I uninstalled rabbitMq using this guide: https://support.bioconnect.com/hc/en-us/articles/115011178868-How-to-Uninstall-RabbitMQ• uninstalled RabbitMq …

Linux

Unable to start RabbitMq Service after uninstalling and then Re-installing RabbitMQ

I uninstalled rabbitMq using this guide: https://support.bioconnect.com/hc/en-us/articles/115011178868-How-to-Uninstall-RabbitMQ• uninstalled RabbitMq …

Linux

Erlang:type ref() undefined

I am trying to build a piece of Erlang code on Ubuntu 14.04. I got the following error. It seems to be something wrong with the header file. I can …

Erlang

Why does Erlang's random number generation seeding require 3 integers?

Erlang's rand:seed/2 uses 3 integers to seed the RNG.Whereas RNG implementations commonly require 1 integer for a seed, why does Erlang's use 3 …

Mathematics

RabbitMQ docker container persistence on Windows

I've created a docker-compose.yml file and when trying to <b>"up"</b> it, I'm failing to have my RabbitMQ docker container persisting to my host volume. It's …

Microservices

list comprehensions plus pattern matching

The problem I'm trying to solve is this: "find all elements of list L which is followed by the element with a value of X".I was trying to do this …

Erlang

How to send request with a set http_header in Erlang Package -> https://github.com/bet365/soap

I am using the following erlang-package to work with WSDL and SOAP:https://github.com/bet365/soapI am using the package only for Client …

Software Development

Calling :binary.match Erlang module from Elixir but having trouble with options

I aim to find within a string, starting at a certain index. It seems that :binary.match/3 is what I look for, but I am having trouble with the …

Erlang

Query ejabberd from a http server

• I have a mnesia database<br>• Database has a table with lots of records.<br>• I want to get all the records from this table from a <b>node.js</b> server via rest api</b> …

Node.js

Erlang SSL - Certificate not suitable on sni_fun callback

I got this error:when supplying a der-decocded certificate for the callback function in the {sni_fun, CallbackFun} option. The CallbackFun returns …

Information Security