Better HN
topnewbestaskshowjobs
Log inSign up

einaregilsson

703 karma · joined Dec 6, 2010 (15y ago) · 85 submissions

Submissions

1.

The Story of Cardgames.io(einaregilsson.com ↗)

2 points · by einaregilsson · 5y ago · discuss

comment 5y ago · link · parent

Does the Canvas api have support for webp?

comment 5y ago · link · parent

Fair point, although I like the blur effect. But you can also fill in with a solid color or transparency.

comment 5y ago · link · parent

Thanks It was fun to build.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

The site itself is at https://photo16x9.com

7.

Show HN: Make Your Photo 16x9(einaregilsson.com ↗)

146 points · by einaregilsson · 5y ago · 43 comments

8.

Show HN: A simple site to make chessboard images(chessboardimage.com ↗)

79 points · by einaregilsson · 6y ago · 12 comments

comment 7y ago · link · parent

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).

10.

Show HN: A simple chess game with multiplayer(cardgames.io ↗)

2 points · by einaregilsson · 7y ago · 1 comment

11.

A GitHub Action for generating sequential build numbers(einaregilsson.com ↗)

1 points · by einaregilsson · 7y ago · discuss

comment 7y ago · link · parent

The alternative to serverless isn't "single instance". With Elastic Beanstalk you can have multiple instances, autoscaling etc.

comment 7y ago · link · parent

> 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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

> 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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

There are definitely still things you need to think about with Lambda, like how much memory you want to allocate etc.

18.

Serverless: 15% slower and 8x more expensive(einaregilsson.com ↗)

3 points · by einaregilsson · 7y ago · discuss

19.

Show HN: Tiny utility to add rounded corners to icons or images(einaregilsson.github.io ↗)

1 points · by einaregilsson · 8y ago · discuss

comment 9y ago · link · parent

Thanks :)

comment 9y ago · link · parent

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 :)

comment 9y ago · link · parent

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 ;)

comment 9y ago · link · parent

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

comment 9y ago · link · parent

Yeah, this was not so much marketing as luck and wanting to make a cool easter egg.

comment 9y ago · link · parent

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 :)

26.

An easter egg for one user: Luke Skywalker(einaregilsson.com ↗)

798 points · by einaregilsson · 9y ago · 134 comments

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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...

comment 10y ago · link · parent

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.
123