News for hackers. Stuff that matters.
Re:Show HN: A tiny QR code generator – my second webapp by GeneralMayhem on Monday September 16, 2013 @11:02AM (#6393587)
Looks like you've already learned the most important lesson of software engineering: don't reinvent the wheel. Offloading the real work to Google probably is the best way to build this app in most cases, but it makes the headline a little misleading, because you didn't actually write a QR generator, you just wrote a text box that proxies to a web API.
Re:Show HN: A tiny QR code generator – my second webapp by shirkey on Monday September 16, 2013 @11:14AM (#6393638)
Another important lesson: be careful in trusting your main functionality to a third party, as Google has already announced the infographics portion (including the QR code generator) has been deprecated, see: https://developers.google.com/chart/infographics/
Re:Show HN: A tiny QR code generator – my second webapp by udhb on Monday September 16, 2013 @12:47PM (#6394199)
Thanks.
Re:Show HN: A tiny QR code generator – my second webapp by mconstable on Monday September 16, 2013 @11:10AM (#6393623)
http://www.itwiz.co.uk/search/index.php

Just type "QR" then a space and whatever you want QR'd

Loads of other services too

Integrates with your browser's search bar too with http://www.itwiz.co.uk/search/index.php?search=%s

Re:Show HN: A tiny QR code generator – my second webapp by danielrmay on Monday September 16, 2013 @12:36PM (#6394122)
Good effort, but you should go for sanitizing the user input before you go ahead and use it.

For example, if you enter "'/> Hellooooo!" into your textarea, you can see the result shows the text "Helloooo!'/>" being shown next to the QR code for "'/>".

This is hugely important when writing web applications - you can read a bit more from this stack overflow question: http://stackoverflow.com/questions/2794137/sanitizing-user-i...

You may also want to read up about XSS: http://en.wikipedia.org/wiki/Cross-site_scripting

EDIT: I realise this was just a small, simple, learning project, but it's important to learn and be mindful of these considerations.

Re:Show HN: A tiny QR code generator – my second webapp by udhb on Monday September 16, 2013 @12:42PM (#6394165)
Thank you very much!
Re:Show HN: A tiny QR code generator – my second webapp by jorangreef on Monday September 16, 2013 @11:21AM (#6393678)
I was hoping you had a much shorter embedded version of http://d-project.googlecode.com/svn/trunk/misc/qrcode/js/
Re:Show HN: A tiny QR code generator – my second webapp by udhb on Monday September 16, 2013 @12:46PM (#6394190)
Thanks for the link!
Re:Show HN: A tiny QR code generator – my second webapp by Sae5waip on Monday September 16, 2013 @12:41PM (#6394158)
Yet another Google Chart APIs QR code "generator". Come on, seriously, its not so hard to generate it yourself.

(Since there is even a JavaScript library to do it for you there is absolutely no excuse to use Googles API)

Re:Show HN: A tiny QR code generator – my second webapp by udhb on Monday September 16, 2013 @10:44AM (#6393488)
Re:Show HN: A tiny QR code generator – my second webapp by ismaelc on Monday September 16, 2013 @11:43AM (#6393794)