Home > qrcoder

qrcoder

Qrcoder is a project mainly written in JAVA and PYTHON, it's free.

QR Code Encoding & Decoding

Encoding and decoding are handled by two scala objects using zxing. Communication with these objects happens via 0MQ sockets (using protocol buffers for the wire format).

There are example clients written in python.

Pieces

  • I chose scala because it's neat.
  • I chose zxing because it appears to be the most mature coding lib out there.
  • I chose protocol buffers because last I checked, thrift isn't all that nice on windows, avro is complex, and messagepack is a bit young.
  • I chose zeromq because I wanted to see how easy it is to use and to support interop between langs/platforms.

Requirements

Scala SBT

Additionally, the libs jzmq.dll and libzmq.dll need to be somewhere on your PATH. If it helps: I have a c:\users\aaron\bin directory that's on my PATH; I stick all sorts of things in there like curl, helper scripts, and the sbt.bat & sbt-launch.jar.

Here's my sbt.bat:

https://gist.github.com/1382ce9e5022c56c8fb0

Running

Once you have sbt installed, open a console, and cd into server directory and start sbt (i.e., type "sbt" and hit enter). Once sbt has started, type "run" and hit enter. From there, it will ask you which server you want to start: the Encoder or the Decoder. If you wanted both running, you could open two console windows.

Ctrl-c to stop the server.

Previous:keepc