I don’t have much to say but I forgot to ship it and I’ve already shipped another project, so bad luck :(
I don’t have much to say but I forgot to ship it and I’ve already shipped another project, so bad luck :(
I ran into a very annoying bug where extra newlines were being added to the project. I had to aggressively debug for the better part of an hour before realising that the problem wasn’t the project, it was me…sort of. Windows inserts /r characters while saving for some reason (reddit reference?) and it was being converted to a newline after saving and re-reading, so I removed all /r/n characters and replaced them while saving to fix complications. Apart from that, I did a major redesigning for the UI and fixed the viewport mismatch issue. I also made an animation with html, css and java and recorded it as a video for a demo. The animation files are in the repo and the video is on youtube.
Apparently, I didn’t link this project to Stardance, even though I’m pretty sure I did. I started this in August as the final project for the CS50’s Introduction to Programming with Python course. It’s a lightweight text-based editor which currently supports .txt files and works on a Flask app. It also looks pretty awesome. Go and read my README.md, it has more details. I hope you can use it for yourself too!
I finally got the loading screen to work! (I haven’t built anything else yet, but still)
Thanks to online websites, I got the code for the background and managed to mash it together to create this. I used particles.casberry.in, originkit, and online tutorials for the background and animation, and some help from AI for the cursor warp. Now, I’ll start the login screen mechanism and the actual desktop.
So, I shipped my project, but a nice person reviewed it and said that I can’t host it on Render because it isn’t guaranteed to be hosted forever, and it spins down after inactivity. So, what I have done is to put it up on Hack Club Nest. Seriously, whoever came up with this and the domains is goated. What do you mean I get a perpetually running private VM and domains like *.iolas.hackclub.app for free? Anyways, just tested it, and it now works, so, I guess I’ll finally ship it.
Smol update: You can play around with the bot in the #animalsay-fun channel un the Hack Club Slack workspace.
Okay, I forgot to post devlogs while actually making it, so I’m doing it now, I guess. Welcome to Animalsay!
If you’ve used Python extensively, randomly scrolled through pypi.org or taken CS50 course for Introduction to Python, you’ll probably know about cowsay, a library which takes text from you and outputs it as said by an ASCII cow. Now, I loved the idea, so I decided to make the Slack bot when I sw it was one of the suggested projects on Hack Club. SO excited was I that I did not see they have a guide for it.
I wrote the basic logic in Python first, and then tested it in the terminal. Then, I moved to a local server with Flask and tested then, then with ngrok, and finally pushed it to Github and uploaded it to run on Render. It’s free, so I’m happy. The only con is that it spins down after inactivity and takes about a minute to wake up when called. Eh, still worth it. If I had read the guide, I could have uploaded it to Hack Club Nest, but it still works. The next steps are to test it in a private Slack workspace first before uploading it to Hack Club’s workspace.
If you want to use it, you’re welcome to. To access it online, go to: https://animalsay.onrender.com
After it wakes up, you can go here: https://animalsay.onrender.com/animalsay?text=random+hello!
This will output a random animal saying hello! to you. You can replace entire string after text with ‘help’ to see available commands, ‘list’ to know which animals are supported, ‘random’+text separated by + signs to output a random animal with said text and ‘’+text for a specific animal. Complicated, but this is the only way I can get HTTP requests to my program.
Bye for now, I’ll go back and start working on more features.