
Helloooo! I am Moose! They/Them/He/Him I am a embedded software engineer with autism, depression and anxiaty ( Wooo! ). I post about... whatever I want... software things, mental health things... whatever I feel like Feel very wellcome to send me asks about... anything that strikes your fancy :3
266 posts
So I Made A GUI For My Parents Campsite. They Wanted A GUI On Tablets, Or Maybe A PC Where They Could

So I made a GUI for my parents Campsite. They wanted a GUI on tablets, or maybe a PC where they could have costumers input the needed info from them.
I can make native GUI's on WIndows, Linux, Android but… this is not the smartest way to make 95% of programs.
You just write a website in HTML, CSS and Javascript, and have all the code in 1 file (You can easily write your own "compiler" that simply copies CSS or Javascript from many files into one file if you want to work with multiple files… And yes, you can write that in HTML and Javascript too)
Here I simply take in the values as strings, sanitize and treat them, and then save them in LocalStorage on the browser.
When you type "Excel" into the first textbox, it reveals 2 extra buttons to download all the data as a CVS file that my parents can open in Excel, and to clear the local storage so the GUI is ready for the next day.
Simple, safe, easy, and will work on any machine that have a browser… meaning them all.
Forget chefs kiss. Programmers KISS is what you want :p
-
hydralisk98 liked this · 9 months ago
-
kansel01 liked this · 1 year ago
-
interrobang05 liked this · 1 year ago
-
moose-mousse liked this · 1 year ago
-
frog707 liked this · 1 year ago
-
kiyote23 liked this · 1 year ago
-
xiabablog reblogged this · 1 year ago
-
xiabablog liked this · 1 year ago
More Posts from Moose-mousse
One of us! One of us!


Art by me, inspired by Tsuukochuo & dachell_Art
⟡ INTRODUCTION ⟡
Heya! I'm neospidey but you can call me neo ヾ(^∇^) I made this blog to share my journey as I learn to code. Hopefully, I'll find like-minded people and keep myself accountable.
I took a web dev course back in 2022 but my study technique was poor thus I quickly burned out. Now I'm trying to relearn html, css, php and javascript. If that sounds interesting, feel free to stick around ^-^
Disclaimer: I might post some art and other hobby related stuff every now and then.
⟡ ABOUT ⟡
I'm an autistic woman of many skills or rather... many hyperfixations, some of which I'm actually decent at (>▽<) The main one being art with gaming a close second! Here's a list of my other interest:
Juggling
Skateboarding
Reading (I'm currently reading Berserk and The Silmarillion)
D&D
Beekeeping
Music (some faves are TOOL, Crumb, Radiohead, MF DOOM and Death Grips)
Inspired by blogs like: @xiacodes, @dawncodes, @berry-codes, @zoeythebee
I look up the stupid printf argument format dozens a dozens of times every year, despite having coded C for almost a decade now...
me: has been coding for 6.5 years
also me:

Listen, it is not nice to call people out. Now stop blabbering and help me out. I need wheels with axils already attached so I can mount them on my robot. The software on him is a thing of beauty but apparently you need "Hard ware" to get the software to move around in meatspace and it is all sorts of bothers. /s
ok ive found some coding hashtags and they're way too wholesome. love yalls hustle but where is the chaos? the engineers that hate coding. but need it to continue going cause i have no other purpose. my blood stream is actually just bits. i want to die but not without my github on my tombstone.
What is half-adder and full-adder combinational circuits?
So this question came up in the codeblr discord server, and I thought I would share my answer here too :3
First, a combinational circuit simply means a circuit where the outputs only depends on its input. ( combinational means "Combine" as in, combining the inputs to give some output )
It is a bit like a pure function. It is opposed to circuits like latches which remembers 1 bit. Their output depends on their inputs AND their state.
These circuits can be shown via their logic gates, or truth tables. I will explain using only words and the circuits, but you can look up the truth tablet for each of the circuits I talk about to help understand.

Ok, so an in the case of electronics is a circuit made with logic gates ( I... assume you know what they are... Otherwise ask and I can explain them too ) that adds 2 binary numbers, each which have only 1 character.
So one number is 1 or 0
And the other number is 1 or 0
So the possible outputs are are 0, 1 and 2.
Since you can only express from 0 to 1 with one binary number, and 0 to 3 with 2, we need to output 2 binary numbers to give the answer. So the output is 2 binary numbers
00 = 0
01 = 1
10 = 2
11 = 3 // This can never happen with a half adder. The max possible result is 2
Each character will be represented with a wire, and a wire is a 0 if it is low voltage (usually ground, or 0 volts) and a 1 if it is high voltage (Voltage depends. Can be 5 volts, 3.3, 12 or something else. )
BUT if you only use half adders, you can ONLY add 2 single character binary numbers together. Never more.
If you want to add more together, you need a full adder. This takes 3 single character binary numbers, and adds them and outputs a single 2 character number.
This means it have 3 inputs and 2 outputs.

We have 2 outputs because we need to give a result that is 0, 1, 2 or 3
Same binary as before, except now we CAN get a 11 (which is 3)
And we can chain full adders together to count as many inputs as we want.
So why ever use a half adder? Well, every logic gate cirquit can be made of NAND (Not and) gates, so we usually compare complexity in how many NAND gates it would take to make a circuit. More NAND gates needed means the circuit is slower and more expensive to make.
A half adder takes 5 NAND gates to make
A full adder takes 9 NAND gates.
So only use a full adder if you need one.
Geeks for Geeks have a page for each of the most normal basic cirquits:

I hope that made sense, and was useful :3
Know any good Cmake learning resources?
Welp. Nothing for it. I will have to stop botching things and actually sit down and learn CMake properly...
"Almost start googling around for resources before realizing a smarter way"
Oh! Codeblr! Anyone know of some good CMake learning resources?