News for hackers. Stuff that matters.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by martinaglv on Wednesday March 06, 2013 @09:39AM (#5331319)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by Hello71 on Wednesday March 06, 2013 @09:56AM (#5331420)
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)}());
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by wubbfindel on Wednesday March 06, 2013 @10:16AM (#5331522)
That's pretty awsome, Better than mine: https://gist.github.com/findel/5099737
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by Groxx on Wednesday March 06, 2013 @12:12PM (#5332235)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by harel on Wednesday March 06, 2013 @08:20AM (#5330993)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by the_mitsuhiko on Wednesday March 06, 2013 @09:04AM (#5331152)
And just for the record: for firefox users there is fox to phone: http://www.foxtophone.com/
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by pdeuchler on Wednesday March 06, 2013 @09:26AM (#5331272)
Chrome for iOS does this job beautifully :)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by lepht on Wednesday March 06, 2013 @09:56AM (#5331415)
Indeed. If only it weren't stuck with a slow js interpreter.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by pdeuchler on Wednesday March 06, 2013 @05:17PM (#5334405)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by hnriot on Wednesday March 06, 2013 @12:29PM (#5332361)
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
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by lepht on Wednesday March 06, 2013 @01:59PM (#5333058)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by archagon on Wednesday March 06, 2013 @04:08PM (#5333943)
Unusable?! I've been using Chrome on my iPhone 4 for the past week and I haven't noticed a significant difference.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by pravka on Wednesday March 06, 2013 @11:32PM (#5336098)
jailbreak + nitrous. problem solved. :)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by lepht on Thursday March 07, 2013 @07:11AM (#5337214)
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 :/
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by harel on Saturday March 09, 2013 @09:46PM (#5350494)
iOS is so last decade :)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ckarmann on Wednesday March 06, 2013 @10:25AM (#5331570)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by kalmar on Wednesday March 06, 2013 @10:34AM (#5331625)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by danielweber on Wednesday March 06, 2013 @12:05PM (#5332190)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by tobyjsullivan on Wednesday March 06, 2013 @12:38PM (#5332414)
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).

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ckarmann on Wednesday March 06, 2013 @10:39AM (#5331660)
That's great! Thank you.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by jmhobbs on Wednesday March 06, 2013 @11:15AM (#5331865)
Also check out Push Pop - http://pushpop.herokuapp.com/
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by felixthehat on Wednesday March 06, 2013 @09:08AM (#5331173)
You mean like pastefire, the browser plugin that sends text to your iPhone clipboard, that I've been using for years ;) http://pastefire.com/
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by 8ig8 on Thursday March 07, 2013 @08:36AM (#5337484)
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. 

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by jdotjdot on Wednesday March 06, 2013 @08:36AM (#5331053)
This is exactly the kind of thing that Apple will likely implement one day as seamless integration is their speciality.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by kaolinite on Wednesday March 06, 2013 @08:48AM (#5331083)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by TheBindingVoid on Wednesday March 06, 2013 @08:05AM (#5330939)
For Android users there is the Chrome to Phone extension which uses Web Intents. No need to scan a QR code. You can directly send selected text, web links, phone numbers or map links to your phone. https://chrome.google.com/webstore/detail/google-chrome-to-p...
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by chaosphere2112 on Wednesday March 06, 2013 @09:48AM (#5331372)

    Fortunately, OS X now has Services
This feature originates in NeXTSTEP, and I'm fairly certain it has been in OS X since the beginning.

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

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by pablasso on Wednesday March 06, 2013 @11:14AM (#5331861)
Yeah, that sentence should have been "Fortunately, I just discovered services on OS X".
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by claudius on Wednesday March 06, 2013 @09:11AM (#5331180)
Look, this even works when you’re offline :)

   qrencode -o - -l L -s 10 -- "$(xsel)" | display
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by fulafel on Wednesday March 06, 2013 @09:42AM (#5331339)
and doesn't tell Google.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by claudius on Wednesday March 06, 2013 @09:44AM (#5331351)
I guess you could buffer the selections in a temporary file and upload it to Google with a cronjob or something…
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by klinquist on Wednesday March 06, 2013 @12:12PM (#5332243)
Nice. I've built a web app that pushes a mobile provisioning profile to iOS devices with your wifi ssid & password - lets people easily jump on your wifi

Works with Redlaser only as most QR code readers open web links in a viewport instead of pushing out to safari.

http://www.getonmywifi.com

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by BHSPitMonkey on Wednesday March 06, 2013 @07:34PM (#5335101)
Interesting. I wonder if there's a way for you get around having to actually host the profile, perhaps via some unconscionably long "javascript:" URL that creates the mobileconfig document and "downloads" it. Red Laser doesn't seem to recognize "javascript:..." as an openable URL, but maybe there's a way around that.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by klinquist on Thursday March 07, 2013 @12:54AM (#5336352)
Interesting thought. I'll have to investigate, thanks.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by colmvp on Wednesday March 06, 2013 @07:43AM (#5330848)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by nwh on Wednesday March 06, 2013 @08:06AM (#5330944)
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

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by zacharyvoase on Wednesday March 06, 2013 @07:47AM (#5330861)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by corresation on Wednesday March 06, 2013 @09:54AM (#5331405)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by xlevus on Wednesday March 06, 2013 @12:34PM (#5332385)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by corin_ on Wednesday March 06, 2013 @06:32PM (#5334802)
My favourite QR code use was from the tube: https://pbs.twimg.com/media/AneZAsiCAAATy1Q.jpg:large

Keep your phone hidden (but check out this QR code!)

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by jschulenklopper on Thursday March 07, 2013 @06:42AM (#5337161)
> check out this QR code!

Instead of trying to scan that QR code (in a corner of a billboard), here's the URL: http://www.btp.police.uk/pickpockets/

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by masklinn on Wednesday March 06, 2013 @08:15AM (#5330976)
Unless you can share your clipboard between them, which works even better.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by franze on Wednesday March 06, 2013 @08:02AM (#5330927)
nope, i run http://miniqr.com for that exact reason, and lets just say, it never took off (and nobody uses is that way)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by crynix on Wednesday March 06, 2013 @08:10AM (#5330956)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by evilduck on Wednesday March 06, 2013 @10:45AM (#5331702)
That site also looks pretty unfriendly.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by netcraft on Wednesday March 06, 2013 @08:41AM (#5331068)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by angry-hacker on Wednesday March 06, 2013 @09:57AM (#5331421)
This gets posted in every qr code topic. You can't deny QR Codes are popular in Japan and Korea...
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by nodata on Wednesday March 06, 2013 @08:49AM (#5331087)
You can store WiFi access point credentials in a QR code: http://www.qrzilla.com (click WiFi)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by duck on Wednesday March 06, 2013 @08:25AM (#5331013)
I can't recommend http://pushbullet.com enough... it allows you to send anything to your phone and works very well.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by Guillaume86 on Wednesday March 06, 2013 @11:50AM (#5332098)
Thx, bonus points for the API
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ctdonath on Wednesday March 06, 2013 @03:56PM (#5333853)
I saw this, thought "yeah right, gonna be more of a pain than depicted, why bother", downloaded & installed it anyway because I've got a stupid fondness for the idea (if not the awkward reality) of QR codes ... and not 2 hours later was using it for real. Dang handy, nicely implemented.

Thanks!

Only quibble is: how big a code can this viably render? tried something not particularly large for fun and just got a big "PNG" icon instead.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by zacharyvoase on Wednesday March 06, 2013 @04:09PM (#5333954)
Thanks a lot! It's feedback like this that keeps me releasing this stuff for free :P

In terms of size: I think QR codes go up to 1024 bytes; anything larger and perhaps the Google Chart Image API would return an error, so you'd be quicklooking an empty file with a '.png' suffix, hence the generic PNG icon.

The next evolution of this script is to store larger text strings in a pastebin and then just display a QR code for the URL to that.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by marban on Wednesday March 06, 2013 @08:00AM (#5330922)
Just keep in mind that Google's QR Code (Infographic) API has been deprecated.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by marban on Wednesday March 06, 2013 @09:59AM (#5331433)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by elijahmanor on Wednesday March 06, 2013 @08:51AM (#5331094)
Yeah, I was about to add that too. Sad, but fun to play with until it is gone ;)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by jackalope on Wednesday March 06, 2013 @09:13AM (#5331192)
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

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by jfb on Wednesday March 06, 2013 @09:46AM (#5331356)
You can use pbpaste on OS X in place of xsel.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by keyboardP on Wednesday March 06, 2013 @08:24AM (#5331010)
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...

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by dphnx on Wednesday March 06, 2013 @09:24AM (#5331262)
This is excellent – I find this more useful than the parent article.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by keyboardP on Wednesday March 06, 2013 @12:16PM (#5332266)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by wubbfindel on Wednesday March 06, 2013 @09:31AM (#5331291)
Would be even more useful if it could QR-ify any currently select text. I was just thinking of doing that myself.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by wubbfindel on Wednesday March 06, 2013 @09:40AM (#5331324)
Ok, done it. Try this:

https://gist.github.com/findel/5099737

Credit for the selection code: http://stackoverflow.com/questions/4652734/return-html-from-...

[Edit: created gist]

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by keyboardP on Wednesday March 06, 2013 @12:15PM (#5332258)
Nice, thanks! Added to my bookmark bar :)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by franze on Wednesday March 06, 2013 @08:10AM (#5330963)
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

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by zacharyvoase on Wednesday March 06, 2013 @08:15AM (#5330978)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by dmd on Wednesday March 06, 2013 @09:00AM (#5331130)
Why is replycam all QR codes? What am I missing?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by franze on Wednesday March 06, 2013 @09:05AM (#5331156)
http://miniqr.com/reader.php uses the replycam flash camera (i own both sites, so i don't care)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by username3 on Wednesday March 06, 2013 @11:24AM (#5331930)
Is there a warning for people snapping QR codes to let them know their photos are being saved on replycam?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by shawn-butler on Wednesday March 06, 2013 @08:14AM (#5330974)
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...

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by netcraft on Wednesday March 06, 2013 @08:39AM (#5331061)
According to Wikipedia, QR code is free of any license.

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

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by wuest on Wednesday March 06, 2013 @09:02AM (#5331142)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by fulafel on Wednesday March 06, 2013 @09:40AM (#5331328)
you can still patent applications of it.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by lepht on Wednesday March 06, 2013 @07:55AM (#5330902)
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

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by fabriceleal on Wednesday March 06, 2013 @08:36AM (#5331052)
I also created a chrome extension, without web requests :)

https://github.com/fabriceleal/chrome-extension-url-qr-encod...

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by conradev on Wednesday March 06, 2013 @11:51AM (#5332102)
If it's speed you're looking for, check this out:

http://news.ycombinator.com/item?id=5016497

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by mef on Wednesday March 06, 2013 @07:49AM (#5330868)
Great hack. Another way to get text quickly to your phone, if you have an iPhone, is to send yourself a message on Messages.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by raverbashing on Wednesday March 06, 2013 @08:26AM (#5331018)
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)

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by mseebach on Wednesday March 06, 2013 @08:12AM (#5330969)
I just email myself. That works on any combination of computer/phone OSs :)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by IgorPartola on Wednesday March 06, 2013 @08:53AM (#5331106)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by d0vs on Wednesday March 06, 2013 @08:07AM (#5330947)
And if you have a Mac.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by conradev on Wednesday March 06, 2013 @11:50AM (#5332094)
If you want to read the QR codes just as quickly on your iOS device, check this out:

http://news.ycombinator.com/item?id=5016497 http://youtu.be/HQNB9XZdPCk

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by shill on Wednesday March 06, 2013 @05:04PM (#5334342)
Nice work! This inspired me to create an Automator service for pretty printing JSON.

http://random-seeds.tumblr.com/post/44730735573/a-useful-os-...

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by dreen on Wednesday March 06, 2013 @08:58AM (#5331122)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by Kudos on Wednesday March 06, 2013 @10:08AM (#5331480)
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.
[deleted]
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by Adirael on Wednesday March 06, 2013 @07:57AM (#5330908)
It's vanilla scroll for me, nothing weird as far as I can tell.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by zacharyvoase on Wednesday March 06, 2013 @07:55AM (#5330903)
What do you mean?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by cocoflunchy on Wednesday March 06, 2013 @08:00AM (#5330920)
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.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by YPetrov on Wednesday March 06, 2013 @09:58AM (#5331431)
Great idea! Never knew about the Automator. That got me inspired to create a HN Search service for myself: http://news.ycombinator.com/item?id=5331370
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ekarulf on Wednesday March 06, 2013 @12:52PM (#5332555)
Google's chart API also supports ssl: https://chart.googleapis.com/chart?cht=qr&chs=300x300...
[deleted]
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by tucosan on Wednesday March 06, 2013 @01:30PM (#5332843)
I use a bash function to immediately display the code:

  function qrshow(){ qrencode -s 10 "$1" -o - | display - ; }
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by gaving on Wednesday March 06, 2013 @11:52AM (#5332113)
Use pastebot from tapbots (authors of tweetbot) for this sort of thing personally. http://tapbots.com/software/pastebot/
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by sandesh247 on Wednesday March 06, 2013 @10:31PM (#5335893)
How do I make the "Services" submenu show up in the right click menu?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by vladocar on Thursday March 07, 2013 @11:48AM (#5338599)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by yahelc on Wednesday March 06, 2013 @10:54AM (#5331743)
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.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by batemanesque on Wednesday March 06, 2013 @08:28AM (#5331027)
here's something intended to serve roughly the same purpose for iOS/Mac: http://www.getbeamapp.com/
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by busted on Thursday March 07, 2013 @01:15AM (#5336409)
this looks great but both apps are free. once we have the apps how do they make money?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by lorenzfx on Wednesday March 06, 2013 @09:11AM (#5331181)
I'm using a zsh function with similar functionality for exactly the same purpose:

    qrdisplay () {
	qrencode -o - "$1" | display
    }
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by claudius on Wednesday March 06, 2013 @09:23AM (#5331252)
"$*" is probably more likely what you want, and throwing in an extra "--" prevents it from choking on arguments that start with a dash.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by lorenzfx on Wednesday March 06, 2013 @02:07PM (#5333098)
you're right, but since I only ever used it for urls I never had noticed these problems
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ssdsa on Wednesday March 06, 2013 @02:53PM (#5333372)
Since the selected text is sent to Google in plain text via a regular HTTP connection, you shouldn't use it on confidential data.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by WickyNilliams on Thursday March 07, 2013 @06:49AM (#5337174)
Been meaning to look into Automator ever since I got my mac. Does anyone have a good guide on all the features available?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by xlevus on Wednesday March 06, 2013 @12:40PM (#5332435)
What would make this perfect, is a "QR Keyboard" that reads from the QR code and dumps it into any other input field.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by Herald_MJ on Thursday March 07, 2013 @05:33AM (#5337010)
If you have an iPhone and Mountain Lion, you can just pass messages between devices via the Notes apps and iCloud.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by pi18n on Wednesday March 06, 2013 @11:25AM (#5331936)
There's also a few apps that can copy and paste between devices. I use Any Send to pass links and PDF's around.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by neilparikh on Wednesday March 06, 2013 @09:37PM (#5335662)
Can services be used on Firefox for Mac? It doesn't show up on my right click context menu.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by peterhajas on Wednesday March 06, 2013 @12:41PM (#5332441)
> Fortunately, OS X now has Services

This has been a feature for OS X for a long, long time.

Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ispekhov on Thursday March 07, 2013 @12:33AM (#5336288)
Now go generate tons of QR codes and scan them all with Qriket to earn money.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by ya on Wednesday March 06, 2013 @12:09PM (#5332219)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by seivan on Wednesday March 06, 2013 @11:46AM (#5332069)
I love the hacker in you. :)
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by eliasmacpherson on Wednesday March 06, 2013 @04:54PM (#5334267)
can i get that in ascii please?
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by eliasmacpherson on Thursday March 07, 2013 @07:21AM (#5337243)
used qrencode and img2txt to get ascii.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by no_news_is on Thursday March 07, 2013 @12:41PM (#5338928)
I followed your lead, but I didn't like the way the img2txt looked. I just wanted black and white.

Then I saw it was unnecessary, qrencode provides ANSI support.

  echo foobar |qrencode -tANSI -o-     #grey, blech
So I threw some sed at it:

  echo foobar |qrencode -tANSI -o- | sed -e "s/\[47m/\[0\;5\;37\;47m/g" -e "s/\[40m/\[0\;34\;40m/g"
But then I looked again, and qrencode provides this to you too:

  echo foobar |qrencode -tANSI256 -o-  # pretty, yay
You can double the output size with:

  echo foobar |qrencode -tANSI256 -o-|sed -e "s/ /  /g;p"
Very pleasing! Might actually use qr codes now.
Re:Show HN: QR Codify, The Most Useful Snippet I've Ever Wri... by carignanboy on Wednesday March 06, 2013 @08:19AM (#5330990)