Coder Social home page Coder Social logo

davidqhr / elixir-captcha Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 18.0 24 KB

This is a Elixir lib for generating captcha. It drawing captcha image with C code. No dependencies.

License: MIT License

Makefile 0.67% Elixir 8.87% C 90.47%
captcha no-dependencies no-imagemagick

elixir-captcha's People

Contributors

davidqhr avatar zven21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

elixir-captcha's Issues

Captcha.get() can fail due to Port.open message split

This thing drives me nuts. The same Dockerfile compiles okay locally, but the gives me the following when compiled by CI remotely.

In short, Port.open for some unknown reason could return two messages instead of one.

Erlang/OTP 20 [erts-9.3.3.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:10] [hipe] [kernel-poll:false]             

Interactive Elixir (1.6.6) - press Ctrl+C to exit (type h() ENTER for help)
iex(xxxx@127.0.0.1)3> Port.open({:spawn, Path.join(:code.priv_dir(:captcha), "captcha")}, [:binary])         
#Port<0.7418>
iex(xxxx@127.0.0.1)4> flush                                                                         
{#Port<0.7418>, {:data, "upadm"}}
{#Port<0.7418>,
 {:data,
  <<71, 73, 70, 56, 57, 97, 200, 0, 70, 0, 131, 0, 0, 233, 30, 99, 233, 30, 99,
    233, 30, 99, 233, 30, 99, 233, 30, 99, 233, 30, 99, 233, 30, 99, 233, 30,
    99, 233, 30, 99, 233, 30, 99, 233, 30, 99, ...>>}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.