profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/martinos/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

martinos/boson-sick 2

Boson homesick file

martinos/dotvim 2

My vim configuration

martinos/contribution-checklist 1

Create better issues and pull requests, go through the checklist!

btrfly-lounge/paperclip 0

Easy file attachment management for ActiveRecord

martinos/altdotvim 0

Alternate vim files

martinos/app_rails 0

Test app for showing a issue

martinos/autocomplete-elm 0

Attempting Autocomplete+ plugin for elm-lang

martinos/bamboo 0

Testable, composable, and adapter based elixir email library for devs that love piping.

martinos/base64 0

Small online app to encode and decode base64 payload

martinos/basic_auth 0

Elixir Plug to easily add HTTP basic authentication to an app

startedsocialpaymentsbv/ex_phone_number

started time in 2 days

issue commentbalena/elixir-sippet

Improve explanation for the Sippet.send function in README.md

Thanks, With the code above I have the following error:

* (Mix) Could not start application stir_shaken: exited in: MyApp.Application.start(:normal, [])
    ** (EXIT) an exception was raised:
        ** (ArgumentError) unknown registry: :as_stack
            (elixir 1.12.2) lib/registry.ex:1097: Registry.put_meta/3
            (stir_shaken 0.3.0) lib/stir_shaken/application.ex:31: MyApp.Application.start/2
            (kernel 6.5.2.1) application_master.erl:277: :application_master.start_it_old/4

The error is associated with the following line.

    Sippet.register_core(:as_stack, MyApp.AsCore)

I don't understand why I have that error since the:as_stacksippet is in the children list. If I remove the :vs_stack from the list, it works well. It seems that adding a second Sippet stack creates an error when I register the first one.

Do you have an idea why?

martinos

comment created time in 2 days

issue commentbalena/elixir-sippet

Improve explanation for the Sippet.send function in README.md

In your example I understand well when I see:

  def receive_request(request, _server_key) do
    response =
      request
      |> except_to_500(&Auth.auth(&1))
    Sippet.send(:sippet, response)
  end

I should replace the :sippet for :mystack. It should give this instead:

def receive_request(request, _server_key) do
  response =
    request
    |> except_to_500(&Auth.auth(&1))
  Sippet.send(:sippet, response)
end

Is there a way to run 2 sippet listening on two different port. I tried and it does not seem to work.

  def start(_type, _args) do
    # List all child processes to be supervised
    children = [
      {StirShaken.Tns, []},
      worker(Cachex, [:certs, []]),
      {Sippet, name: :as_stack},
      {Sippet.Transports.UDP, name: :as_stack, port: 5062},
      {Sippet, name: :vs_stack},
      {Sippet.Transports.UDP, name: :vs_stack, port: 5063}
    ]

    opts = [strategy: :one_for_one, name: StirShaken.Supervisor]

    res = Supervisor.start_link(children, opts)
    Sippet.register_core(:as_stack, StirShaken.AsCore)
    Sippet.register_core(:vs_stack, StirShaken.VsCore)
    res
end

I didn't touch Elixir for a while so I am a bit confused.

martinos

comment created time in 2 days

create barnchISPT/elixir-sippet

branch : p_asserted_identity_3

created branch time in 2 days

issue openedbalena/elixir-sippet

Improve explanation for the Sippet.send function in README.md

I am trying migrate my app to the latest version of Sippet and I don't understand how to send a response back to the caller.

When I read the README file, I see

Sippet.send(:sippet, request)

I don't know understand what is the :sippet atom. Should it be the stack name?

created time in 3 days

create barnchISPT/elixir-sippet

branch : p_asserted_identity_2

created branch time in 3 days

create barnchISPT/elixir-sippet

branch : p_asserted_identity

created branch time in 3 months

push eventISPT/elixir-sippet

Martin Chabot

commit sha cd30ca20a5f6f3d3d31389d159b0614e641cab61

A parameter with an empty value should not be serialized with an =

view details

Martin Chabot

commit sha 8f0df523c8a8531a4fa6b165a2d431bd04af1165

Git ignore tags

view details

push time in 3 months

push eventISPT/elixir-sippet

Martin Chabot

commit sha 8f0df523c8a8531a4fa6b165a2d431bd04af1165

Git ignore tags

view details

push time in 3 months

issue openedonkel-dirtus/logger_file_backend

Warnings when compiling on elixir 1.12.1

When I compile my application I get the following error when compiling the logger_file_backend application.

==> logger_file_backend
Compiling 1 file (.ex)
warning: Logger.compare_levels/2 defined in application :logger is used by the current application but the current application does not depend on :logger. To fix this, you must do one of:

  1. If :logger is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :logger is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :logger, you may optionally skip this warning by adding [xref: [exclude: [Logger]]] to your "def project" in mix.exs

  lib/logger_file_backend.ex:36: LoggerFileBackend.handle_event/2

I think that the library should have :logger added to the extra_applications options in order to fix this.

created time in 3 months

push eventmartinos/logger_file_backend

Martin Chabot

commit sha ef957fccde72285491068517b009568ad33489e4

Update mix.exs

view details

push time in 3 months