News for hackers. Stuff that matters.

lasserafn

Re:Tweet.new on Thursday October 10, 2024 @03:54AM (#41796599)
loving this, and we should all do more stuff because 'its funny' - would make the world a better place
Re:Flashcard maker hosted on CF Pages, no server no database on Wednesday September 18, 2024 @05:53PM (#41585988)
Localstorage-based flashcard maker hosted on Cloudflare Pages for $0, no server rendering etc.
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:08PM (#15426182)
It’s transparent to me, weird.. I’ll have to look into this. Thanks for feedback :)
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:06PM (#15426179)
I’m so glad to hear such feedback! Thanks!
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:05PM (#15426175)
Ouch, Yeah appears pretty obvious. Will add some rounding to the sizes or similar
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:04PM (#15426170)
Absolutely, but it’s not that simpel, it’s made to be flexible and handle different logic. Not that it’s magic by any means, it’s fairly simple but you’d want to generate the initials on the server anyway, to acomplish similar results

For example, it takes first letter of first name, and 2 letters from last name if only two names supplied and desired length is 3.

However if 3 names are supplied, it uses a letter from each name.

It’s not magic, but doing it in CSS wouldn’t be easy, I imagine

Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @01:44PM (#15424766)
It’s made to be a gravatar fallback :)

The reason its not CSS is because this api generates the initials for you.

CSS is way faster, so I’d recommend that

Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @01:25PM (#15424677)
Thanks! :) hoping to support everything possible
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @11:55AM (#15424241)
Thanks for letting me know! I will stuff different languages over the coming months to better manage such things :) didn’t know that
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @10:29AM (#15423897)
However interest is subjective, and it’s obviously interesting to some, considering the traction it’s gotten.
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @10:28AM (#15423888)
I dont get it either :) Yes, that’s basically all it does.

I don’t think theres anything to it

Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @08:34AM (#15423510)
Thanks of adding this!:D

https://ui-avatars.com/api/?name=马云马云&length=4 Maybe this works?

Anyway, actually one could add &no-cache and it would ignore cache, I forgot that part

Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @08:33AM (#15423509)
also, Remarkbox looks nice
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @08:33AM (#15423508)
Super cool! I like the SVG support part
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @08:07AM (#15423441)
Absolutely, I've played around with this. There are tons of open source libraries to determine gender from name. Obviously it cannot be 100% correct, but it can provide a guess
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:32AM (#15423370)
Thank you! :)
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:29AM (#15423364)
Haha, they're so great!

There's also this one: http://avatars.adorable.io

Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:17AM (#15423334)
In regard to latest edit with Twitter

I think it's interesting how much thought goes into default avatars, and that it can be used as a marketing tactic. Thanks for providing link to Twitter as well. Guess I'll have to think more about it in the future.

Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:15AM (#15423327)
Yeah, it absolutely is (ui-avatars). I think its a neat little think to act as fallback for gravatar, but I totally agree that it's overkill
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:12AM (#15423320)
Didn't consider that aspect. That would be very cool! Okay, thats a little more of a challenge than generating some initials and making a circle, lol. I will investigate, sadly I'm not the most creative person, so wouldn't be as cool as https://robohash.org
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:03AM (#15423295)
Wow, I expected something else. That is actually interesting!
Re:Show HN: Generate avatars from user initials on Saturday October 07, 2017 @07:02AM (#15423292)
Thanks you!

Honestly? Nothing really. Well, you don't have to think about the code part but besides that? Nothing. Actually it would be more performant to use CSS and HTML (or SVG?) to generate avatars. I have a core package (used to generate the initials), and if used that with html, it would be far better.

I use the service for our internal products, as gravatar fallbacks

Older »