6 ms·
I made a fake-cake generator for my 30th birthday
- chime 16y agoI'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.
- mcargian 16y agoHappy Birthday!
- mahmud 16y agoWoo, 30 year olds unite! :-)
- adw 16y agoEnd of this month...
- IdeaHamster 16y agoHa! I'm a day younger than you…so…there! or something… Happy Birthday!
- pak 16y agoDid you build it in CakePHP?
- moconnor 16y agoHappy Birthday! http://cakesy.com/842f662be http://cakesy.com/842f662be
- yosho 16y agoi made something similar except with airplanes and cars http://flylikeagsix.com/hackernews http://flylikeagsix.com/hackernews
- devmonk 16y agoAwesome! I made my first cake: http://cakesy.com/886ed73c0 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.
- chime 16y agoOh boy. I was wondering how long before the jokes started.
- gdl 16y agoWhile we're at it, I'm pretty sure this one is obligatory: http://cakesy.com/886e854a5 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.
- chime 16y agoAwesome idea about the auto-sizing of text. I will give it a shot tomorrow.
- nandemo 16y agoI've got this... http://cakesy.com/85d2db719 http://cakesy.com/85d2db719
- scottyallen 16y agoVery awesome. I couldn't resist: http://cakesy.com/810b350ac http://cakesy.com/810b350ac
- deleted 16y ago[deleted]
- Groxx 16y agoDoesn'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 http://cakesy.com/8a7d3b35a
- chime 16y agoThis 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.
- Groxx 16y agoI 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.
- mahmud 16y agoYou 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.
- caf 16y agoThere's another issue with the "graphically manipulated" case - typefaces. There's no fonts that support every Unicode code point.
- dr_lego 16y agocan't help myself. http://cakesy.com/8f0f94220.jpg http://cakesy.com/8f0f94220.jpg
- chime 16y agoHow can you drop that which doesn't exist? There's no DB behind this site.
- Groxx 16y agoAre 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!
- dr_lego 16y agoAw, 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.
- devmonk 16y agoIt'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");
- JoachimSchipper 16y agoAre you just using regular files?
- chime 16y agoThe 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.
- jrockway 16y agoThe cake is a lie.
- minsight 16y agoMy web 1.0 (or perhaps web .9) cake generator is at http://www.cakemessage.com/ http://www.cakemessage.com/ It's got the best in 1993 web UI technology.
- minsight 16y agoPS. I'm going to have to agree with the "most of the time is spent on making the frosting color look best" strategy!
- randomwalker 16y agoApparently jokes are OK in this thread. http://cakesy.com/86471d2df http://cakesy.com/86471d2df (Surprised no one did this yet.)
- kleiba 16y agoThat's way too intellectual for me... I refuse to go to an art museum until they offer free wi-fi!
- 8ren 16y agoCartoon 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: ಠ_ಠ
- nessence 16y agoI can't help but notice the circles; they remind me of (the late) OpenSolaris logo.
- gvb 16y agoThose aren't circles, they are zeros. I want some ones so I don't get a http://cakesy.com/8fcf958fc http://cakesy.com/8fcf958fc.
- maguay 16y agoNo Hello, World! yet? Here you go... http://cakesy.com/81b0ff157.jpg http://cakesy.com/81b0ff157.jpg
- caf 16y agoAwesome... now do it in the browser with Javascript ;)
- chime 16y agoIt 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.
- deleted 16y ago[deleted]
- grahamg 16y agolol: http://cakesy.com/810610580.jpg http://cakesy.com/810610580.jpg
- prodigal_erik 16y agoI for one would like to see interoperability with http://store.makerbot.com/toolheads/makerbot-frostruder/frosttruder-kit-mk2.html http://store.makerbot.com/toolheads/makerbot-frostruder/fros....
- aw3c2 16y agoGet a cake-by-mail shop integrated/affiliated ("Like this cake? You could be eating it. Click here to order.") and you might become rich.
- pbhjpbhj 16y agoSo is this the inevitable redditification of HN following the exodus from Digg to reddit?