Hacker Newsnew | past | comments | ask | show | jobs | submit | txstc55's commentslogin

Cuz I slack off often so I needed an app to tell me when the code finished, and why not just reinventing the wheel.


I mean i also made this one: https://txstc55.github.io/simple-avatar/


You are right, I probably should have a copyright file there, just so that if people use this project they have to cite me, other than that I don’t care about how people use it


Are they too ugly to exist though?


I was going to suggest thisavatardoesnotexist.com first, but it felt too counterfactual, so I settled on that.


I believe for avatar generations i have including this one, three of them. I thought i pushed the code already. For any code that requires a database access I don't push the code


Thanks, I appreciate seeing the code! For code with database access, you could use an environment variable from a .env file and gitignore that file, making it safe to share. (you're probably already aware of this practice and may have another reason not to want to push it)


For things working with database I mainly don’t want to expose the rpc calls or the database queries. I know people can just get it by checking dev tool but it’s one layer of labor and can filter out many people with millacious intent


Hi all, I'm the creator of this website, I will open source the code soon. Any support is appreciated. If you have X/twitter, consider also liking this post: https://twitter.com/txstc55/status/1772163607809478948


very entertaining.

if it's not a lot, can you have another UI that display more than one avatar at a time? say, 3x3 or 4x3 grid?

Thanks


It’s not hard but I don’t see the use of this, so probably not. And also although it doesn’t seem like it but the computation is quite intense for them, having multiple will lag the browser


no worry.

maybe i'll explain why, it's like the finding a mate for marriage problem. you dates enough ppl to have a taste of what you like, and then for the next one that comes along that is on par with the best you've seen, you take that.

i guess a 3x3 grid is not necessary, maybe when you click "another", push the old one up (or down) the stack but keep it around so I can always go back and pick the best one I liked so far after the sampling?

Anyway, don't sweat about it, thanks for creating this.


What you are looking for is called the secretary problem [0]. This states that in a search like yours, you can determine beforehand how often you are willing to press "another", and after 37% of attempts, you pick the first one that's better than the best one so far.

[0] https://en.m.wikipedia.org/wiki/Secretary_problem


It will take roughly 37 years for the monkey to type out the entirety of shakespeare once


The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type any given text, including the complete works of William Shakespeare. Since it's basically pratically impossible to achieve that, I made a website with some house rules:

1. Any characters between two words will be ignored

2. We will only check for the next word in Shakespeare's work, so if the next word is 'thy', and the monkey magically typed 'hell', it won't count.

3. Every couple characters the monkey typed without hitting a word, we will increase an error tolerance, if the error tolerance is 3, and the current word is 'thee', if the monkey typed 'tahbeke', it will count since removing 'abk' which is 3 characters, we get 'thee'

4. Any user on the website can insert a new character every 30 seconds.

With those rules, maybe, just maybe we get to see the entirety of Shakespeare's work being typed out by the monkey.


I got bored, so I wrote a website that generate random sketch of duck


Had this thought of making a website like this for a long time, if you have a special mesh with a specific piece of text in mind that could be represented in this way let me know


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: