Datamatrix barcode reader/generator for Ruby? - ruby

I have found alot of .NET barcode reader/generators but not many for Ruby. Any recommendations on GEMS or someway to generate dtaamatrix barcodes and the ability to read datamatrix barcodes in PDF/TIFF files?

I'd the same problem a few months ago. There is a gem named "semacode" which use a native extension to generate datamatrix codes but it's buggy (adds a space in front of every string).
I would suggest Libdmtx through the system command which works fine for me. Afaik there is also an ruby adapter to this library but I the shell is okay for my project.

Related

Computer Aided Translation and Xcode

Is it somehow possible to use CAT Tools (Computer Aided Translation) like Swordfish in any senseful way to get i18n done? Copy/pasting strings is error prone and any MS Word is not exactly a pro application for translations.
Any other app/system/format that could work well with XCode for that job?
It looks like AppleGlot is such a tool I looked for. It doesn't translate, but extracts strings and allows incremental localization. It has XLIFF support (as Swordfish, mentioned above).
AppleGlot is available in the developers.apple.com area.

QR Code reading/writing in Ruby

What's the easiest way to add QR Code reading/writing capabilities to a Ruby (2.0) program (if it helps, the codes will be written to and read from PDFs)? All of the gems I've found seem to have not been updated in quite some time, and usually have a ton of dependencies. Are there any good options out there?
https://github.com/smparkes/zxing.rb
YMMV, I'm the author. But I'm also the primary C++ maintainer of zxing and I use zxing.rb for a lot of testing so it should be as up-to-date as the C++ port is.
No comment on the number of dependences: they're not a barrier for me, obviously.

Is there an Windows 8 API that we can leverage to read barcodes?

I am looking for an HTML/javascript sample that I can use on a windows 8 app to read barcodes.
There are a couple apps that can read barcodes in the store. However, they must be using something like C# because I was not able to find a sample that uses HTML/Javascript to be able to read barcodes. I know barcodes have specific requirements, but I am just looking for a sample here.
Does anyone know where I can find a simple sample?
Thank You for reading.
Yes - ZXing is an open source library for reading 1D and 2D barcodes. There are a few ports including one for WinRT which can be found here: http://zxingnet.codeplex.com/. You should be able to reference this in your application as a component and call it from WinJS.
Hi you can check this link:
http://www.activebarcode.com/ - Provides a barcode API for your APP. It can also be used with VB.net, C#. It also provides you a different kinds of barcode formats.
Hi,
I made a lib for WinRT using ZXing & Imaging SDK.
It works well (but does not include any additional focus feature).
https://github.com/stepheUp/VideoScanZXing4WP81
There is a lib and a sample app that you can try.
It works for barcodes and QRCode (barcode by default but just change the optional parameter in the scan function code to use QRCode)
Hope it helps,
Stéphanie

iOS6 barcode reader, using ZBarSDK, should I change?

Im using the ZBarSDK barcode reader in my app, but it is not compiled to run on arm7s.
Im wondering if I should rather use a different library for my barcode scanning.
Im experiencing some problems with ZBarSDK, like problems with reading barcodes on some devices.
I ended up paying for the SD toolkit barcode scanner, since I did not like the ZBar license agreement.
Just remove the "armv7s" on ZBarSDK, this will work :)
You can use the beta version (1.3.1), which is working fine with optimized arm7 arch.

Building a Windows executable from my Ruby app?

I'd like to be able to send a Ruby app to some colleagues without requiring them to install a Ruby interpreter. A single exe would be preferable.
I googled and found "RubyScript2Exe".
What are your experiences with that? Are there other such tools or are there better approaches altogether than building an exe?
I've used it about 3 times and I haven't had any problems with it and I ran one of the apps on 10 servers and never had any issues. So, I think RubyScript2Exe is about as good as it gets for ruby.
_why's Shoes framework lets you package the program as an executable for Mac or Windows that installs Shoes (contains a Ruby interpreter). Information about using the packager is here. _why also gives hints about how he makes the Windows executable here.
Don't forget OCRA [1] which I used a couple of times and which Just Worked.
I used to create my exes with RubyScript2Exe as mentioned above but had problems when used with Ruby 1.9 [2].
[1] http://ocra.rubyforge.org/
[2] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/343891
There is another one called Crate. You can find some information about it here. However I haven't tested it on Windows.
Sorry to be late to the party, but I found this question in my search for trying to do this myself (starting to use SO more and more as a primary resource).
Anyway, I have just had success with exerb, although I'd add a couple of notes:
The web page says exerb runs on any platform. That is true; however if you "compile" a program calls out to native code, then exerb will embed your system's native code (e.g. Linux .so files) into the .exe. In practice, that means you have to build any significant app on Windows.
The web page also says ruby -r exerb/mkrbc but the actual command is ruby -r exerb/mkexy.

Resources