News for hackers. Stuff that matters.
Re:I made a fake-cake generator for my 30th birthday by chime on Sunday October 03, 2010 @10:11PM (#1754323)
I'm turning 30 tomorrow so I figured I'd make something birthday related. A friend of mine came up with the idea and I coded it all up. The frosting is generated dynamically using the PHP GD library and a lot of image convolution matrices. And if you're wondering, yes the web 2.0 logo and cheesy graphics are intentional. I thought it would be more fun this way.
Re:I made a fake-cake generator for my 30th birthday by pak on Monday October 04, 2010 @02:15AM (#1754782)
Did you build it in CakePHP?
Re:I made a fake-cake generator for my 30th birthday by mcargian on Sunday October 03, 2010 @10:54PM (#1754425)
Happy Birthday!
Re:I made a fake-cake generator for my 30th birthday by IdeaHamster on Monday October 04, 2010 @01:29AM (#1754701)
Ha! I'm a day younger than you…so…there! or something…

Happy Birthday!

Re:I made a fake-cake generator for my 30th birthday by moconnor on Monday October 04, 2010 @02:42AM (#1754821)
Re:I made a fake-cake generator for my 30th birthday by mahmud on Monday October 04, 2010 @01:21AM (#1754683)
Woo, 30 year olds unite! :-)
Re:I made a fake-cake generator for my 30th birthday by adw on Monday October 04, 2010 @08:23AM (#1755410)
End of this month...
Re:I made a fake-cake generator for my 30th birthday by yosho on Monday October 04, 2010 @05:11AM (#1755084)
i made something similar except with airplanes and cars

http://flylikeagsix.com/hackernews

Re:I made a fake-cake generator for my 30th birthday by randomwalker on Monday October 04, 2010 @12:32AM (#1754603)
Apparently jokes are OK in this thread.

http://cakesy.com/86471d2df

(Surprised no one did this yet.)

Re:I made a fake-cake generator for my 30th birthday by kleiba on Monday October 04, 2010 @06:23AM (#1755198)
That's way too intellectual for me... I refuse to go to an art museum until they offer free wi-fi!
Re:I made a fake-cake generator for my 30th birthday by demallien on Monday October 04, 2010 @06:26AM (#1755200)
Re:I made a fake-cake generator for my 30th birthday by kleiba on Monday October 04, 2010 @11:05AM (#1755853)
Dang... Magritte, here I come...
Re:I made a fake-cake generator for my 30th birthday by 8ren on Monday October 04, 2010 @02:39AM (#1754815)
Cartoon shows are vividly pro-consumption: Simpsons has beer and crusty burgers; Futurama has alcohol; Spongebob has Krabby Patty burgers. Though often joked about, they are always seen being enjoyably consumed. This makes the shows very appealing to a TV network, because they are very appealing to advertisers of consumables.

When viewing your website, I couldn't help but think how delicious some cake would be right now. So. Let adsense do its work, showing local cake-delivery bakeries that provide a web-customizable text service (assuming they exist - if not, there's a business there too.)

Also, do support unicode, as someone suggested, also for reddit-inspired workplace friday cakes, such as: ಠ_ಠ

Re:I made a fake-cake generator for my 30th birthday by minsight on Monday October 04, 2010 @12:28AM (#1754595)
My web 1.0 (or perhaps web .9) cake generator is at http://www.cakemessage.com/

It's got the best in 1993 web UI technology.

Re:I made a fake-cake generator for my 30th birthday by minsight on Monday October 04, 2010 @12:33AM (#1754604)
PS. I'm going to have to agree with the "most of the time is spent on making the frosting color look best" strategy!
Re:I made a fake-cake generator for my 30th birthday by Groxx on Sunday October 03, 2010 @11:12PM (#1754464)
Doesn't much like japanese text (Had to try it). Otherwise, nice job :) I like the chocolate one the best by quite a bit.

I made you a happy cake, just to show how much I liked it: http://cakesy.com/8a7d3b35a

Re:I made a fake-cake generator for my 30th birthday by chime on Sunday October 03, 2010 @11:18PM (#1754479)
This is why I love the Internet. I didn't even think about different Unicode characters and symbols. I whipped up the entire site in 2 days (most of it was spent tweaking the different frosting colors) and haven't even put it through my regular barrage of tests. I'll try to get Unicode working tomorrow, it mostly has to do with the specific font I used. Maybe I can give a few more font-choices. Also, I could auto-size the font according to the length of text.
Re:I made a fake-cake generator for my 30th birthday by Groxx on Sunday October 03, 2010 @11:27PM (#1754500)
I try UTF characters in everything which displays text, especially when it's graphically manipulated. It's slightly amazing how few handle it, even if there's little reason not to (unless a library along the pipeline only reads ASCII).

I think it's just that most people are used to dealing with / have encountered C char arrays, and 8 bits per character just makes sense to programmers. 'Tis why I jump for joy when I hear about framework-X fully supporting UTF - IMO, they all should, from day one, but I realize it can sometimes be a lot of work, and is always a performance hit.

Re:I made a fake-cake generator for my 30th birthday by mahmud on Monday October 04, 2010 @01:26AM (#1754695)
You don't know how right you are. Google Web Toolkit has the most impressive support for Arabic, but it's ASCII only out of the box, even though it runs on Java, a thorough-bred Unicode language.
Re:I made a fake-cake generator for my 30th birthday by caf on Monday October 04, 2010 @03:55AM (#1754954)
There's another issue with the "graphically manipulated" case - typefaces. There's no fonts that support every Unicode code point.
Re:I made a fake-cake generator for my 30th birthday by dr_lego on Sunday October 03, 2010 @11:21PM (#1754488)
Re:I made a fake-cake generator for my 30th birthday by chime on Sunday October 03, 2010 @11:23PM (#1754493)
How can you drop that which doesn't exist? There's no DB behind this site.
Re:I made a fake-cake generator for my 30th birthday by Groxx on Sunday October 03, 2010 @11:29PM (#1754508)
Are you saying the cake doesn't exist? That it's... a lie? Why would anyone lie about cake?

For that matter, why would anyone intentionally drop cake? That's a waste of good cake! Shame on you, dr_lego!

Re:I made a fake-cake generator for my 30th birthday by dr_lego on Monday October 04, 2010 @01:05AM (#1754661)
Aw, I would never really try to hack cakesy!

For whatever reason, I just found the statement "drop cake" hilarious. Nevermind it's not valid sql.

Re:I made a fake-cake generator for my 30th birthday by devmonk on Monday October 04, 2010 @07:37PM (#1758012)
It's cakeql:

SELECT BOWL FROM CABINET FULL JOIN EGGS ON COUNTER WITH MIXER, FULL JOIN FLOUR ON COUNTER WITH MIXER, FULL JOIN SUGAR ON COUNTER WITH MIXER WHERE CHEF IS NOT NULL; UPDATE OVEN SET TEMP = F(450); INSERT INTO OVEN VALUES CAKE AFTER REMOVE FREAKIN_TRAY FROM OVEN WITH MITT; BAKE CAKE; REMOVE CAKE WHERE CAKE = BAKED; DROP CAKE; REMOVE CAKE WHERE CAKE ON FLOOR WHERE FIVE_SECOND_RULE = TRUE; CROSS APPLY ICING(RED) AS DECORATION; CUT CAKE; SELECT SLICE(LARGE) AS "PIECE" FROM CAKE AND EAT("PIECE");

Re:I made a fake-cake generator for my 30th birthday by JoachimSchipper on Monday October 04, 2010 @07:35AM (#1755317)
Are you just using regular files?
Re:I made a fake-cake generator for my 30th birthday by chime on Monday October 04, 2010 @08:19AM (#1755400)
The only files I'm creating are .jpg files. The file name is a hash of the form values. Put in the same form values and you get the same .jpg file.
Re:I made a fake-cake generator for my 30th birthday by scottyallen on Monday October 04, 2010 @03:13AM (#1754877)
Very awesome. I couldn't resist: http://cakesy.com/810b350ac
Re:I made a fake-cake generator for my 30th birthday by prodigal_erik on Monday October 04, 2010 @05:47AM (#1755148)
I for one would like to see interoperability with http://store.makerbot.com/toolheads/makerbot-frostruder/fros....
Re:I made a fake-cake generator for my 30th birthday by aw3c2 on Monday October 04, 2010 @08:07AM (#1755378)
Get a cake-by-mail shop integrated/affiliated ("Like this cake? You could be eating it. Click here to order.") and you might become rich.
Re:I made a fake-cake generator for my 30th birthday by maguay on Monday October 04, 2010 @03:37AM (#1754918)
No Hello, World! yet? Here you go... http://cakesy.com/81b0ff157.jpg
Re:I made a fake-cake generator for my 30th birthday by devmonk on Sunday October 03, 2010 @10:12PM (#1754327)
Awesome! I made my first cake: http://cakesy.com/886ed73c0

The chocolate side-on shot of the cake makes for more realistic cakes from my trial. The head-on cakes' writing doesn't look real at all.

Re:I made a fake-cake generator for my 30th birthday by chime on Sunday October 03, 2010 @10:13PM (#1754329)
Oh boy. I was wondering how long before the jokes started.
Re:I made a fake-cake generator for my 30th birthday by gdl on Sunday October 03, 2010 @10:26PM (#1754358)
While we're at it, I'm pretty sure this one is obligatory: http://cakesy.com/886e854a5

The above example makes the text look too small though, IMHO. Maybe scale things up dynamically to fit the text to the available space a little better? Still, very neat toy.

Re:I made a fake-cake generator for my 30th birthday by chime on Monday October 04, 2010 @12:30AM (#1754599)
Awesome idea about the auto-sizing of text. I will give it a shot tomorrow.
Re:I made a fake-cake generator for my 30th birthday by nandemo on Monday October 04, 2010 @12:14AM (#1754579)
Re:I made a fake-cake generator for my 30th birthday by nessence on Monday October 04, 2010 @02:53AM (#1754843)
I can't help but notice the circles; they remind me of (the late) OpenSolaris logo.
Re:I made a fake-cake generator for my 30th birthday by gvb on Monday October 04, 2010 @03:14PM (#1756902)
Those aren't circles, they are zeros. I want some ones so I don't get a http://cakesy.com/8fcf958fc.
Re:I made a fake-cake generator for my 30th birthday by jrockway on Sunday October 03, 2010 @11:21PM (#1754490)
The cake is a lie.
Re:I made a fake-cake generator for my 30th birthday by sachinag on Monday October 04, 2010 @12:05AM (#1754566)
Re:I made a fake-cake generator for my 30th birthday by JosefK on Monday October 04, 2010 @12:38AM (#1754619)
Re:I made a fake-cake generator for my 30th birthday by mcknz on Monday October 04, 2010 @04:46PM (#1757347)
First you will be baked. And then you will be cake.
Re:I made a fake-cake generator for my 30th birthday by pbhjpbhj on Monday October 04, 2010 @07:49PM (#1758050)
So is this the inevitable redditification of HN following the exodus from Digg to reddit?
Re:I made a fake-cake generator for my 30th birthday by caf on Monday October 04, 2010 @04:00AM (#1754966)
Awesome... now do it in the browser with Javascript ;)
Re:I made a fake-cake generator for my 30th birthday by chime on Monday October 04, 2010 @08:33AM (#1755439)
It shouldn't be hard at all. But it won't work as inline images, email attachments, or upload to website. So it's utility will be very marginal.