116 comments

[ 2.2 ms ] story [ 182 ms ] thread
QR codes on billboards and in marketing are kind of rubbish, but in terms of moving a URL or a phone number from your PC to your phone quickly, they're actually pretty useful.
nope, i run http://miniqr.com for that exact reason, and lets just say, it never took off (and nobody uses is that way)
What determined the outcome of your service was the convenience factor. To use it, the user needs to select the information, go to your webpage, and then submit it. It's too much work for the user.

OP's program removes 1/3rd of the steps, making it much easier for the user.

That site also looks pretty unfriendly.
Unless you can share your clipboard between them, which works even better.
QR codes on billboards and in marketing are kind of rubbish

On a big billboard beside the freeway, sure. In a home for sale sign, or in a bus shelter, or anywhere else where people are either a) very interested or b) captive, they are fantastic.

The best place I've seen QR codes is on the tube.

Because hey, I'mma scan this QR code, and then remember about it when I'm topside.

I've found them horribly useful for passing authentication tokens from desktop to mobile devices. It means that you can move tokens without having to type enormous screens or go through a normal login form.

They're even pretty if you embed them with a bitmap using QArt — http://research.swtch.com/qart

I find it useful, it just needs to be easier on phones to get to the qr code scanner. I use an iphone, and if it was as easy as just opening up the camera app, pointing at the code which it recognized and put a box around (similar to the focus box perhaps) that I could click on, it would go a long way to getting more people to use them.
This gets posted in every qr code topic. You can't deny QR Codes are popular in Japan and Korea...
Great hack. Another way to get text quickly to your phone, if you have an iPhone, is to send yourself a message on Messages.
And if you have a Mac.
I just email myself. That works on any combination of computer/phone OSs :)
Can't do that with a password or other sensitive info.

I have a web server that only responds to requests from my LAN. I put sensitive info into an HTML file there, then point my phone's browser to it to copy/paste it; then I delete the info from the file. This way the data never leaves my LAN, which I believe is reasonably well protected.

Well, that's actually a pretty nice idea

Maybe you can sign up for an SMS broker and send SMSs if you don't have a Mac (it's less expensive than you think)

(comment deleted)
What do you mean?
Whoops I'm sorry, I thought you had some fancy js here but I think it was just a bug with my mouse... the page was scrolling down weirdly to the end of the header.

Can't reproduce it after refreshing.

My bad, I'll delete the original comment.

It's vanilla scroll for me, nothing weird as far as I can tell.
I've been using a Chrome extension I created for the same purpose. The nice part is that it does it without making an external web request, using javascript and canvas.

Also, iPhone users should check out the Scan app[1] for a QR code reader. It's by far the fastest starting, simplest QR scanner I've been able to find; Most of the other apps seem to be cramming in price-checking features and have butt-ugly icons.

[1]: http://scan.me

Just keep in mind that Google's QR Code (Infographic) API has been deprecated.
Yeah, I was about to add that too. Sad, but fun to play with until it is gone ;)
You can do it locally with qrencode[1], which is available via MacPorts and Homebrew. It would probably simplify the script, too (especially if converted to bash).

On an X11 environment, I can select some text and get the same results on the command line with something like:

    xsel | qrencode -o - | feh -FZ
None of these commands are standard on any distribution, but you can easily install them or use alternatives. You can also make this an alias, hotkey, etc.

[1] http://fukuchi.org/works/qrencode/

Edit: No need for temporary file

You can use pbpaste on OS X in place of xsel.
if you like URL "hacking" you can do something like this

  http://miniqr.com/http://www.example.com/ 
  http://miniqr.com/"hello world"
does mostly the same as mentioned above, does this for i think now 4 years (i coded this on a beach in mexico, lets say my memories are fuzzy)

after looking at the market fo QR codes now for 4 years, i don't think i will get rich with just that side project. QR codes just do not fulfill any use case for users (they fulfill a use case for content publishers and advertisers, but non for users)

p.s.: if you want to (really) see people scanning QR codes, there is a page for that, too http://replycam.com/browse.php

For me, it was more about sticking the whole process in an OS X Service available by right-click than actually generating a QR code. Of course you could also write one that sends a text message (via Twilio perhaps), or beams something over Bluetooth.
Why is replycam all QR codes? What am I missing?
http://miniqr.com/reader.php uses the replycam flash camera (i own both sites, so i don't care)
Is there a warning for people snapping QR codes to let them know their photos are being saved on replycam?
Cool, I like it and would use it daily. I sometimes use dropbox like a pastebin for same thing.

QR Code transfer is probably patent encumbered (like well almost everything).

Nokia has app to do this but in reverse. Look at photo gallery on phone in their app. When you find picture you want to see, open browser on desktop and see QR code. Point camera at screen and the QR code in browser is replaced by image from phone.

http://conversations.nokia.com/2012/11/30/photobeamer-the-ma...

According to Wikipedia, QR code is free of any license.

http://en.wikipedia.org/wiki/QR_code

Indeed; in order for any standard like this (or UPC, EAN, etc) to gain widespread usage as opposed to very narrow, single-organization usage, it has to be EASY to adopt.

This means that while the standard's official documentation might require that it be purchased (this is the case with QR), or while software which interacts with it might not be free/gratis, it must not carry with it patent or licensing encumberances. While ISO allows "reasonable and non-discriminatory" patents/licenses to be enforced against technologies which are ISO standards, something like a barcode format is difficult to justify licensing restrictions in almost all cases.

you can still patent applications of it.
I use Chrome to Phone with my android phone. One click on a button sends the current url to my browser, or I can select any text, right click it and send it to my phone where it is then available on my clipboard to paste wherever. It also keeps a history of all this on my phone so I can recall what I sent last week. That feature alone is why I'll probably never own an iPhone.

Edit: Still a cool extension you've got there! Not taking anything away from it.

This is exactly the kind of thing that Apple will likely implement one day as seamless integration is their speciality.
They haven't done anything with text yet but there's iCloud Tabs for URLs. Anything you have open in Safari is available on your iPhone/iPad too and anything on those devices is available by clicking the cloud icon in Safari.
Chrome for iOS does this job beautifully :)
Indeed. If only it weren't stuck with a slow js interpreter.
yes, chrome on iOS is unsable because of this. I'd love to use Chrome more, but even lightweight js sites are tediously slow on chrome/ios
Not just the javascript either, Chrome becomes horrendously slow with week wifi signals where Safari is fine. For some reason only Apple apps can do the 3G/LTE/Wifi request pooling magic that they added in iOS 6.
Unusable?! I've been using Chrome on my iPhone 4 for the past week and I haven't noticed a significant difference.
jailbreak + nitrous. problem solved. :)
Did that for a few weeks, and the Chrome performance boost was nice. I had to jail-unbreak though because stability was horrid for me, with applications constantly crashing :/
I jailbroke my phone and installed the Nitrous addon to give all apps access to the Nitro engine. Though, i'll admit it's not an option for everyone.
iOS is so last decade :)
Do you guy know something like a "Phone to Chrome"? I'm desperate to find a way to open simply with my desktop Chrome web pages that I stumble upon with my Android but which are impractical to read with it.
You can do this if you use Chrome on your phone, and are signed in with sync enabled. The tabs on your phone are accessible from the 'New Tab' page on you desktop and vice versa. On desktop Chrome, there's a little 'Other Devices' drop down at the bottom; on Chrome for Android, there's a button with a pair of arrows at the bottom right.
Can that work in one direction? I have dozens of tabs open on my desktops, and I don't want to punish my phone with that.
It doesn't open the tabs automatically. Your tabs open on your desktop are listed essentially like bookmarks on your phone. You choose to open them or not at any given time.

The feature is enabled by default so if you're using Chrome already (on both devices, with your Google account), then it's likely already syncing (and clearly not punishing your phone).

Here's what I did to solve this problem. It works on all platforms/all phones/all browsers.

I created a document using TitanPad (http://titanpad.com/) -- any paste bin service will do. I then bookmarked that document on all my computers and phones. I called the bookmark 'Text Sync'.

Bonus if your favorite paste bin supports versioning. You can use secure Gists if you've got some private text to pass around. 

I created a bookmarklet that does the same thing for any website you're browsing. Makes it easy to transfer from PC to phone, assuming the phone can read QR codes.

http://keyboardp.tumblr.com/post/38976790879/send-webpage-fr...

This is excellent – I find this more useful than the parent article.
Thanks, glad you like it. I wanted an easy way to transfer the URL without installing plugins or having to be signed into specific accounts.
QR sounds useful for some minor applications, but for anything serious placed in a public place on a physical medium (like a billboard) its a phishers dream: just put a sticker with your phishing url over the original one and noone will ever realise.
I remember temporarily sticking an A4-sized QR code linking to a mild shock image on my desk at my old job and tweeting a photo of said desk to see who I'd get a reaction from.
Look, this even works when you’re offline :)

   qrencode -o - -l L -s 10 -- "$(xsel)" | display
and doesn't tell Google.
I guess you could buffer the selections in a temporary file and upload it to Google with a cronjob or something…
I'm using a zsh function with similar functionality for exactly the same purpose:

    qrdisplay () {
	qrencode -o - "$1" | display
    }
"$*" is probably more likely what you want, and throwing in an extra "--" prevents it from choking on arguments that start with a dash.
you're right, but since I only ever used it for urls I never had noticed these problems
I read through the comments, expecting to see a JS version of this, but I didn't find one so I made it:

  javascript:(function(){ var i = new Image();i.src = 'http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl='+ encodeURIComponent(getSelection());i.onclick=function(){i.parentNode.removeChild(i)};i.setAttribute('style', 'position:fixed;top:50%;left:50%;margin:-150px 0 0 -150px;box-shadow:0 0 20px rgba(0,0,0,0.2)');document.body.appendChild(i)})();
Create a new bookmark, name it "QR Selection" and add the above code as the URL. Only tested in Chrome.

Edit: Added missing apostrophe.

Missing a closing apostrophe.

    javascript:(function(){var a=new Image;a.src="http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl="+encodeURIComponent(getSelection());a.onclick=function(){a.parentNode.removeChild(a)};a.setAttribute("style","position:fixed;top:50%;left:50%;margin:-150px 0 0 -150px;box-shadow:0 0 20px rgba(0,0,0,0.2)");document.body.appendChild(a)}());
(comment deleted)
I've been using something roughly the same as this for a few months. Surprisingly handy, especially since you can use it to send URLs to just about any device.
My solution here is usually to just send myself a text message from Google Voice. For me, it's faster to open a new tab and paste my text than to find my QR reader and scan.
There's also a few apps that can copy and paste between devices. I use Any Send to pass links and PDF's around.
I love the hacker in you. :)