News for hackers. Stuff that matters.
Re:Doge as a Service by GuiA on Sunday December 22, 2013 @03:50PM (#6951684)
Congrats on posting about something you did on HN! Here's some feedback:

- Like a lot of such generators, you make the mistake of picking random x,y coordinates and not checking for collisions, which can result in situations like that (http://i.imgur.com/M7LyPqD.png)

- generating a nicer URL, as other commenters have pointed out, would be nice

- just as a FYI, when products use the terminology "as a service", it's typically because the product can be used in a programmatic way (i.e. it exposes its functionality through an API). That would be a good next step for your project!

Re:Doge as a Service by codazzo on Sunday December 22, 2013 @03:57PM (#6951703)
Hi, I'm the creator of dogr actually. I'm not sure who posted this to HN :) Thanks for the feedback! Doge-as-a-service is a just funny name. Not sure who would have a need for such a thing.
Re:Doge as a Service by wfn on Sunday December 22, 2013 @06:14PM (#6952213)
Those API-like URLs seem to be timing out now. Consider adding caching (you might be able to simply enable caching-proxy-functionality at the webserver layer, e.g.)
Re:Doge as a Service by carbocation on Sunday December 22, 2013 @03:40PM (#6951642)
Such sad

OMG no persistence!

Very copy/paste

(It provides the output as CData, so it doesn't give you a URL that you can then copy/paste to send to friends. You would have to save the image locally and then upload it somewhere first. Maybe plug this into imgur in the backend and redirect to an imgur URL if someone clicks on 'View'?)

Re:Doge as a Service by codazzo on Sunday December 22, 2013 @04:03PM (#6951723)
Hi, thanks for the feedback. Upload to imgur is definitely coming!
Re:Doge as a Service by thebenedict on Sunday December 22, 2013 @05:25PM (#6952055)
I don't know why I find doge so funny, but this is great. Unfortunately "very view" causes Chrome and Chrome Beta to crash on a Nexus 5/Android 4.4.2. I get the idea though.

What does the tech stack look like? Is it open source?

Re:Doge as a Service by codazzo on Sunday December 22, 2013 @05:33PM (#6952074)
Hi, thanks! It's a node app with some simple canvas rendering code. The rendering code is shared by the client and server. The text splitting is rather simple too but I had fun writing it. It's open-source of course! https://github.com/codazzo/dogr
Re:Doge as a Service by thebenedict on Sunday December 22, 2013 @07:39PM (#6952450)
Looks like Chrome for Android is crashing because the serialized png is too large. Just sent a quick pull request that exports a smaller jpg instead.
Re:Doge as a Service by Bahamut on Sunday December 22, 2013 @05:35PM (#6952085)
Not a fan of the meme, but I did want to link it to friends...I found out that you can't just right click and save the image though since it's in a canvas. Perhaps a different implementation would be better here?
Re:Doge as a Service by codazzo on Sunday December 22, 2013 @05:45PM (#6952119)
Hi, I'll add upload to imgur shortly so you'll be able use that. In the meanwhile you can play wheel of fortune and use doge as a service :) http://dogr.io/wow/suchfriends/manysharing.png
Re:Doge as a Service by RandallBrown on Sunday December 22, 2013 @05:39PM (#6952101)
If you click "Very View" it will show it as an image that you can save.
Re:Doge as a Service by dan-g on Sunday December 22, 2013 @03:22PM (#6951585)
Whatever you do, don't copy and paste the image URL into say, IRC, for example.

Big mistake.

Re:Doge as a Service by lini on Sunday December 22, 2013 @03:37PM (#6951631)
Perhaps you need to add some checks so different lines of text don't overlap on the image when their random positions are too close together.
Re:Doge as a Service by codazzo on Sunday December 22, 2013 @04:01PM (#6951717)
Yup, that's definitely coming.
Re:Doge as a Service by lhgaghl on Sunday December 22, 2013 @05:39PM (#6952097)
This isn't true SaaS because the images are generated on the client side. You could add value to your service by saving the images on the server and providing URLs that people can link to. https://bayimg.com/KaegiaAFP
Re:Doge as a Service by thenerdfiles on Sunday December 22, 2013 @06:22PM (#6952235)
I still think this would be funnier with Baskerville and not Comic Sans.
Re:Doge as a Service by allochthon on Sunday December 22, 2013 @06:32PM (#6952267)
Comic sans in bright colors seems to have become an important detail of the meme.
Re:Doge as a Service by thenerdfiles on Sunday December 22, 2013 @08:58PM (#6952679)
So that's what Comic Sans is for[0].

[0]: http://www.mcsweeneys.net/articles/im-comic-sans-asshole (I'm aware.)