10
votes
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
I am going to teach some kids about Neural networks, and for that I am going to use teachable machine and I created a UI for Daniel Shiffmans Snake game seen here:
https://www.youtube.com/watch?v=UPgxnGC8oBU
I took some time to give it a vaporwave look, because I was in the mood for it and a blank site didn't feel inspiring.
Here it is for anyone to check out. It's basically Daniels code, but I added a few things: exchangeable models, restartable game, and you have to click start before it asks you for permission to use the camera, which I think is always creepy when it pops up uninvited.
Feel free to try it out, your image is only used locally, and you can view the source code/ turn off the internet connection to see.
Edit: also you can view it without clicking start so it won’t even ask you for your camera. And there’s no analytics or anything
https://alikarpuzoglu.com/snake_ml/
This is also where I found the memory leak and added a contribution to a library (I mentioned that in another post yesterday)
The NN was trained on photos of me doing the same poses that Daniel is doing in the video, so it is likely not going to work for you, but you can create your own model with googles teachable machines easily.
That's also what I'll do with the students... I hope it will be able to fill some time.
I've been modding a game called Cataclysm: Dark Days Ahead. It's a grounded post-apocalyptic survival game where some of the less-grounded sci-fi elements appear the further you go into living in this torn new world.
The mod I've been working on is aimed at the late stage of the game, where the player has looted enough military and science facilities to find the resources they need to build high-end hardware, for combat or survival. It's called Project APEX, after a splinter group of scientists and engineers who had the foresight to prepare humanity to the (currently occurring) alien invasion the best they could.
It's currently at stage 0, or alpha. So far, it adds a decent suit of prototype armor that has to be manufactured using a laboratory-based nanofabricator. Currently working on stage I, or beta, which adds the actual first generation of the advanced armor, as well as modules meant to enhance the wearer's performance in narrow but intense ways.
You can read more about what this mod's about in the roadmap in the linked repo.
I've also been working on a supplementary mod, Homestead, but it's had no work for it so far 'cause Project APEX doesn't yet need the tools Homestead's supposed to give. The further I go into Project APEX's development, the more tools will see the light of day in Homestead.
Not planning to. I recognize that both mods are a little too far on the sci-fi side for the base game. If the devs choose not to add either of the mods to their default bundle, I'd hold no grudges.
That said, Aftershock is in the default bundle, and it gets very sci-fi sometimes. Hard-light bow? Copyright-avoiding lightsaber replica? Even the base game mentions research into matter that's not made of atoms, as well as interdimensional travel and portals...
At the same time, Kevin Granade, the lead dev, has expressed concern over having what is effectively a molecular forge earlier in the development. Attainable personal molecular forge is one of the things Homestead aims to provide – a high-end, rare tool, but attainable nevertheless – whereas nanofabricators are secured behind levels of dangerous post-Cataclysm lab environment.
Would be cool to have that sort of recognition, though. Until then, I'm working 'cause I enjoy it and can use it in my own games.
I remember you asking about some other languages and web frameworks and such a while ago, including Ruby on Rails. What led you to start learning Go now?
How are you going about learning it?
Well, I tried to install Pwnagotchi on my Raspberry Pi 4 and failed miserably. At least I succeeded in setting up SSH and remote desktop access along the way.
where did you get stuck?
I followed the instructions here: https://pwnagotchi.ai/installation/#1-bettercap
After wget and unzipping the contents, I then tried to install the caplets and webui, only for the command to fail and tell me there was nothing installed in /usr/bin/. I spent probably 2 hours trying to fix this to no avail.
I'm currently learning front-end website programming (HTML, CSS, Javascript etc). After that I hope to learn some back-end website programming and maybe create a website for one of my other projects.
If you have front-end questions, feel free to PM me. I've been doing this for five or six years now. No guru, but I like to help newcomers where I can.
Thanks! I'll keep that in mind
I made my first web app this weekend, Snippet Dog. It takes a code snippet, formats it with syntax highlighting, and gives you html and css so you can put it on a static site without the need for a JS syntax highlighter.
It still needs a little instructional text and I have a few backend tweaks I'd like to make but it's effectively feature complete. I used FastAPI and Pygments for the backend, a little jQuery glue code to make the requests, and deployed it behind nginx on a digital ocean droplet.
I hadn't used FastAPI before but the real challenge for me was the deployment part, getting nginx to forward requests to the port exposed by the docker container and so on. I'm sure I didn't do it the best possible way but it works ¯\_(ツ)_/¯
I'm trying to build a small web app with flask. I'm not very far in and am trying to decide how much JavaScript vs python code to use to generate the page and submit a form. I wanted to learn JavaScript because I know python better, but the tutorial I'm following manages it all through flask and templates. Ultimately I'd like an app where you can login, view your saved data and create new data. Any tips for an amateur?
This sounds a lot like what I just did for the first time (see my comment in this very same thread here).
I used FastAPI instead of Flask, but the fundamentals are the same (I think). While Flask lets you create html from jinja templates, you can also do the web side as ordinary html, make calls to Flask with jQuery (or whatever async javascript you want), and then use the response from the call to change things on the webpage.
You can take a look at my code on github: https://github.com/daturkel/snippet.dog
Right now I'm working on a project in my usual environment, Godot. I'm working on a biopunk-esque RPG (an actual RPG, not Fallout 4) with elements from classic RPG: top-down and full of dialogue.