Giter Site home page Giter Site logo

qrcode-mass-producters's Introduction

#QRCode Mass Producters 一个极其简陋的玩具

###这东西是这么用滴:

  1. 安装Ruby 1.8.7(安装时记得把tcl/tk支持选上)

  2. 安装ActiveTcl

  3. 安装‘rqrcode_png’这个最主要的gem

  4. 执行QRCoder_Maker.rb

  5. 要编译成exe文件,请先安装ocra gem install ocra,然后执行ocra [rb file] [ruby/tk path] --add-all-core --windows --no-autoload --gem-full

  6. 或者不搭建环境,直接执行QRCoder_Maker.exe

###不是计划的计划

  1. 继续macruby之路,抛开gem,直接调google api生成QRCode
  2. 水印的中好像有些问题,打包出来的exe好像缺字体
  3. 看看能不能抛开对Imagick的依赖,真正成为绿色版

###以下纯吐槽: 写这个东西完全是属于本末倒置的,先是看到一个能生成二维码的gem包,用ruby写了一段批量生成二维码的脚步,于是头昏脑热打算用ruby写个有图形化界面的工具方便其他人在没有ruby环境的情况下批量制作二维码。

最初选择了macruby来进行开发,后来发现这个gem包在1.9.2的ruby环境下有乱码的情况,于是只好作罢,退到1.8.7,用TK+ruby来写这些东西,东西不多,主要就是把原来的ruby脚本和图形界面做了一下关联,因为头一次用tk,所以非常不熟练,尤其是最后打包发布成可执行文件这一步,最是坑爹。很多工具都是好几年前的,连ruby1.8.7都不支持,幸亏最后找了一个ocra,这才拯救了我,总算是能搞出来个东西

缺憾是明显的,比如性能、比如各种bug、比如为了打包方面,把功能和界面的代码扔到了一块儿,但总算是学到了些东西-无论这些东西到底有没有用。

qrcode-mass-producters's People

Contributors

zeusyu avatar

Watchers

albert avatar

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.