einaregilsson
einaregilsson on Hacker News
Posted by
einaregilsson on Thursday April 08, 2021 @12:08PM
from the einaregilsson.com dept.
Does the Canvas api have support for webp?
Fair point, although I like the blur effect. But you can also fill in with a solid color or transparency.
Thanks It was fun to build.
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.
Posted by
einaregilsson on Thursday March 11, 2021 @10:33AM
from the show-hn dept.
Posted by
einaregilsson on Friday January 03, 2020 @10:19AM
from the show-hn dept.
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).
Posted by
einaregilsson on Wednesday October 30, 2019 @09:49AM
from the show-hn dept.
Posted by
einaregilsson on Monday September 23, 2019 @11:19AM
from the einaregilsson.com dept.
The alternative to serverless isn't "single instance". With Elastic Beanstalk you can have multiple instances, autoscaling etc.
> 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.
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.
> 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.
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.
There are definitely still things you need to think about with Lambda, like how much memory you want to allocate etc.
Posted by
einaregilsson on Wednesday September 18, 2019 @08:10AM
from the einaregilsson.com dept.
Posted by
einaregilsson on Tuesday February 20, 2018 @09:05AM
from the show-hn dept.
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 :)
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 ;)
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
Yeah, this was not so much marketing as luck and wanting to make a cool easter egg.
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 :)
Posted by
einaregilsson on Wednesday June 28, 2017 @06:35AM
from the einaregilsson.com dept.
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...
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.
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.