QR code generation with zxing

skrymerdev

This post will show you how to easily create QR codes using the zxing library using groovy and how to programmatically add a image overlay on top of a QRCode.

First download the zxing library from there github.

Now that we have the library let’s start with something easy like creating a QRCode that represents the url for this post:

  1. Create a new QRCodeWriter and invoke it’s encode method with the data to be stored in the QRCode, the Barcode type we want generated (zxing supports more formats than QRCode) and last we put in the width and height of the QRCode.
  2. Create the image using MatrixToImageWriter.toBufferedImage() from the previously generated matrix.
  3. Last create the actual image and save it on disk

If we execute the code (without errors) the following QRCode will be generated:

The zxing library makes it really easy other types of barcodes and the library contains…

View original post 307 more words

「ShopBack如何打造台灣團隊?怎樣人才適合加入ShopBack?」–ShopBack分享會現場提問紀錄(分享會下篇)

Farry .H行銷人

ShopBack台灣團隊如何打造?怎樣人才適合加入?

為什麼ZALORA沒進中國市場?

「永遠去打弱的地方,寧願做小地方的龍頭」–shared by Joel

          ShopBack創辦人Joel來台分享過去在新、馬、菲律賓、印尼營運電商時,因為文化差異而產生的不同使用者行為。除了因國家產生的使用者差異,跨國的人才管理和市場切入腳色更是一大學問。
以下為分享會後在場觀眾的提問與Joel本人的回答。

Q: ShopBack怎麼進行人才管理的?

View original post 50 more words

Love Groves

No Sleep

Why? Tell me why?
The things you say would never stop to be annoying
Why? Tell me why?
The things you do would never stop to be destroying
Take me up as you used to do
The days we spent were filled with joy and filled with laughter
Bring me down as you told me to
I’ve got something on my mind and I’m gonna spell it for youL-O-V-E
It’s what you mean to me
I’m feeling helpless and you complete me
L-O-V-E
Just like a melody
A piece of harmony
L-O-V-E

Why? Tell me why?
The birds and the bees are never there when you need them
Why? Tell me why?
The times that I’m near you my heart goes bump bump
Take my hand as you used to do
We walked together into the sunset
Take a seat in my little head
I’ve got something on my mind…

View original post 167 more words

Testing Local Web Sites with the Android Emulator

Matt or Meeple

The other day I was trying to fix an issue that was reported by a user of an older Android device. I am not an Android user, and do not have an actual Android device to test with. So, I thought I’d try using the Android Emulator to reproduce the issue and verify my fix.

These instructions assume you are using  Mac OS X, but should be easy to follow with minimal changes if you are on another platform.

Install Android Studio

If you are only interested in using the Android emulator, you could skip the full Android Studio installation and just install the Android SDK Tools. But, the Android Virtual Device (AVD) Manager that comes with Android Studio looks a bit more polished than the core SDK version, so I’d recommend installing the full Android Studio.

Android Studio Download Page

Create a Dummy Project in Android Studio

I couldn’t find a way…

View original post 359 more words