Ask HN: What apps have you created for your own use?
441–450 of 793 posts
Re: Ask HN: What apps have you created for your own use?
#442These are the things I've created, some mostly for my own use, and others just for fun: 1. https://gptgames.io - A gaming platform using OpenAI. It came from a silly idea for another project I have, and I ended up putting it together in 1 month. 2. https://creepyface.io - I wanted to animate my face on my resume, and I decided to allow everyone else to do the same. 3. https://react-guitar.com - I wanted to learn guit…
I'm using creepy face on my own site. How fun :)
Would you mind sharing your site with me so that I can see how it looks?
Re: Ask HN: What apps have you created for your own use?
#443A few years ago, my wife and I decided to adopt a rescue cat from battersea.org.uk. However, it was a frustrating experience as the staff didn't always update the website regularly, and we'd find that any suitable cats would be snapped up before we'd even seen them. I spotted that the website served its data to the frontend via an unsecured internal JSON API, so I built an Elixir app that would poll the API endpoint…
Why not go straight from the json to Twitter?
The primary reason was to learn Elixir, so this was just a well-timed excuse to explore the language (and Phoenix, the web framework).
The secondary reason was that my wife was the main client, and she doesn't respond well to raw JSON. Each tweet would be just the cat's name, photo, and a link to the website. I also did some filtering as certain cats have safety requirements we couldn't meet, e.g. no neighbouring cats, no children)
One of the main issues I had to figure out early on, was "how do I distinguish which cats are new, compared to the previous response?". This was made harder because I couldn't rely on the ordering; occasionally previously-posted cats would have details updated and they would move position. Postgres UPSERT was new (to me, at least) at the time, and it seemed like a very handy way to offload the responsibility. There were never more than 50 cats listed at any one time, so it was reasonable enough to request all the animals at once, and let the database figure out which cats were new, based on a combination of identifiers that would make them unique. I could also filter the updated records to see _what_ had been updated, e.g. the cat had now been rehomed.
Another thing Elixir did really well was the polling mechanism. It's absolutely trivial to spawn a worker that can repeatedly perform a task and asynchronously hand it off to be processed.
Hope that answers your question!
Re: Ask HN: What apps have you created for your own use?
#444Earlier quoted context omitted.
Why not go straight from the json to Twitter?
How would you keep state of which pets have already been posted?
This worked as there were only ever 30-50 cats online at one time. If it was a thousand, I'm not sure what I would have done.
Edit: I realise now this was a rhetorical question. Oops!
Re: Ask HN: What apps have you created for your own use?
#445Re: Ask HN: What apps have you created for your own use?
#446I couldn't find a simple app that would automatically read our transactions reliably and generate this daily spending limit.
My app does 2 things: Shows transactions: https://imgur.com/a/aJ9G02q Shows limit overviews: https://imgur.com/a/ugnmnFq
Stack: - Phoenix LiveView - Postgres - Plaid