News for hackers. Stuff that matters.

einaregilsson

Re:Show HN: Make Your Photo 16x9 on Thursday March 11, 2021 @01:13PM (#26427115)
Does the Canvas api have support for webp?
Re:Show HN: Make Your Photo 16x9 on Thursday March 11, 2021 @12:49PM (#26426833)
Fair point, although I like the blur effect. But you can also fill in with a solid color or transparency.
Re:Show HN: Make Your Photo 16x9 on Thursday March 11, 2021 @12:33PM (#26426641)
Thanks It was fun to build.
Re:Show HN: Make Your Photo 16x9 on Thursday March 11, 2021 @12:32PM (#26426632)
Good idea. I've just changed it so now you can keep pushing the blur button and it will increase the blur by 1px for each push.
Re:Show HN: Make Your Photo 16x9 on Thursday March 11, 2021 @10:45AM (#26425207)
The site itself is at https://photo16x9.com
Re:Show HN: A simple chess game with multiplayer on Wednesday October 30, 2019 @09:50AM (#21397679)
The single player mode is just for beginners, but I do think we have a pretty nice multiplayer feature, where you can easily challenge others and start a new game without creating an account (we don't have accounts).
Re:Serverless: slower and more expensive on Monday September 23, 2019 @05:35AM (#21047282)
The alternative to serverless isn't "single instance". With Elastic Beanstalk you can have multiple instances, autoscaling etc.
Re:Serverless: slower and more expensive on Monday September 23, 2019 @05:31AM (#21047265)
> This feels very "Serverless is cool, everyone is saving money on it, lets do the same

More like "seems like there's an easy way for me to try this new thing out, lets give it a shot". It took a couple of hours to switch over to this, and I learnt something in the process. Also, our API is very simple, pretty much all the actions are a single database call, so I don't think in this case we would have gained anything by splitting things up into more pieces. But I can see how it would make sense for a larger, more complicated app.

Re:Serverless: slower and more expensive on Monday September 23, 2019 @05:27AM (#21047254)
Yes, ALB would have been a much better fit for us. We used API Gateway because that's what the serverless framework sets up (at least by default) and I didn't know you could use ALB in front of Lambda.
Re:Serverless: slower and more expensive on Monday September 23, 2019 @05:23AM (#21047240)
> requires a complete re-architect of your stack.

Not necessarily. The reason I decided to try this was exactly because I found a tutorial showing you could easily host a bog-standard ASP.NET web app on Lambda with the serverless framework. I had to add a small startup class, and one config file to our existing app and I was up and running.

Re:Serverless: slower and more expensive on Monday September 23, 2019 @05:17AM (#21047218)
Yeah, that would have been a much better fit. I just didn't know you could put ALB in front. (Also, a "load balancer" in front of serverless... , and yes I know load balancer do more than load balance.)

I mainly went with API Gateway since that's the default setup the serverless framework uses.

Re:Serverless: slower and more expensive on Monday September 23, 2019 @05:16AM (#21047209)
There are definitely still things you need to think about with Lambda, like how much memory you want to allocate etc.
Re:An easter egg for one user: Luke Skywalker on Wednesday June 28, 2017 @06:53PM (#14659272)
Thanks :)
Re:An easter egg for one user: Luke Skywalker on Wednesday June 28, 2017 @10:28AM (#14654397)
There are no user accounts on the site, and there is no tracking of any users. I simply saw the avatar image that he posted and targeted that, so probably a few random users got Darth Vader as well.

Also, even if there were user accounts, this is a one man shop, so it would be hard for me to build a firewall between myself and myself :)

Re:An easter egg for one user: Luke Skywalker on Wednesday June 28, 2017 @10:06AM (#14654210)
I agree :) This was definitely luck, most people never get celebrities tweeting about their games. And I guess now I am getting some marketing value out of it, but honestly I just wanted to share this with an audience that I knew would appreciate it. When you program cool stuff you want to share it!

In any case, I guess I'll get some extra traffic today, but at the end of the day it's a Yahtzee game, nothing exactly groundbreaking, so I don't think all the people that saw this post are going to start playing Yahtzee all the time ;)

Re:An easter egg for one user: Luke Skywalker on Wednesday June 28, 2017 @08:15AM (#14653423)
Well, given that he retweeted a tweet that had the explanation of how it worked, and he added the #BestFansInTheGalaxy hashtag I think he's OK. But really, I probably wouldn't have done anything like this for another celebrity, if Bruce Willis had tweeted I wouldn't try to make a Hans Gruber avatar or anything :D
Re:An easter egg for one user: Luke Skywalker on Wednesday June 28, 2017 @08:14AM (#14653412)
Yeah, this was not so much marketing as luck and wanting to make a cool easter egg.
Re:An easter egg for one user: Luke Skywalker on Wednesday June 28, 2017 @08:13AM (#14653404)
Exactly. Each avatar is made up of 6 features, hair, hair color, skin color, eyes and mouth. No nose, because who needs them! So each part has a code, and I can store a face as a simple 6 character string. Then I just compared against the ids of the eyes, hair and smile. I actually allowed any glasses and any smile because I wasn't absolutely sure which one he'd used :)
Re:SVG changes color when rotated in Safari 10 on Thursday September 22, 2016 @11:55AM (#12557744)
A user on my site ran into this while playing Go Fish. He was pretty surprised to see this: https://dl.dropboxusercontent.com/u/6430877/screenshot.png
Re:SVG changes color when rotated in Safari 10 on Thursday September 22, 2016 @11:51AM (#12557709)
Haha, we have the same thing in Iceland. It basically turns it into "Two tomatoes were walking across the road when one was hit by a car. The other one said, 'come here you tomato sauce'", which is a terrible terrible joke :)

My daughter messed it up even more and started with "Two tomato sauces were walking across the road..." at which point it's no longer a joke, just a story about a traffic accident...

Re:SVG changes color when rotated in Safari 10 on Thursday September 22, 2016 @11:49AM (#12557689)
Probably. I'm using 10.0 (11602.1.50.0.10), which is what I got when I upgraded through the App Store this morning.
Re:SVG changes color when rotated in Safari 10 on Thursday September 22, 2016 @11:47AM (#12557675)
No, it doesn't work on all builds of 10. I have Safari 11602.1.50.0.10, which is WebKit 602.1.50, it happens there at least.

Older »