Show HN: I made a web-based notepad with a built in unit calculator
211–220 of 246 posts
Re: Show HN: I made a web-based notepad with a built in unit calculator
#212One thing that I haven't found supported in other calculators is returning the min or max between two values
min(a, b) = (a + b - abs(a − b)) / 2
max(a, b) = (a + b + abs(a − b)) / 2
Re: Show HN: I made a web-based notepad with a built in unit calculator
#213Earlier quoted context omitted.
Thanks! You can use the web version, it's all offline and saved in localStorage. Works well in mobile too and can be "installed" as an app from there. https://filipesabella.com/CalcPad
I wanted to see how this would run in redbean[1], and it runs fantastically! If you wanna see this in a little executable that you can pass around to your friends, check out this repo I threw up: https://github.com/shmup/redbean-calcpad This is now essentially an offline CalcPad that still leverages LocalStorage, since the UI is your browser. I've configured this specific build to automatically launch your default br…
Re: Show HN: I made a web-based notepad with a built in unit calculator
#214Re: Show HN: I made a web-based notepad with a built in unit calculator
#215Re: Show HN: I made a web-based notepad with a built in unit calculator
#216Re: Show HN: I made a web-based notepad with a built in unit calculator
#217This looks pretty cool. I've long been looking for something similar to Soulver ( https://soulver.app/ ) that I can use on Linux. This seems promising. One small criticism: In my opinion, no web-based writing app is useful unless the tab key inserts a tab. The default behavior of most browsers to move focus to the next field is tremendously infuriating in this context. Unfortunately, that's what happens here, at leas…
Example: I (who am not a programmer) once wrote a tangled mess of HTML and JavaScript to accept, and tabulate data entry for rebar (reinforcing steel) estimates. I was inordinately proud of it, bird's nest of bad programming practice that it was. I could TAB or ENTER-key my way through all fields, the up and down arrows performed the same tasks as the TAB-key, just like on a desktop program.
So why was it important to do things this way, and break the conventions so dear to the heart of the standard's purist? Because this is how I (and many others) estimated rebar in the 1990's:
You sat at a wide desk or table with a set of plans 30" to 48"-wide spread out to your left (if you were lucky) and another 30"-48" of table was needed to catch the plan pages turned to reveal the one you were working on. You right hand rested on the keyboard's ten-key pad some 3-5 feet away. You didn't look at your right hand -- you looked at your left hand index finger which was glued to (and rarely left) the large page at precisely the item you wanted to enter into your tabulation program, as you entered the SAC code, the qty per unit, the number of units, the bar size number, the bend category, the grade of steel, and the total length. Your eyes never left the drawing as you did this, and immediately upon completing that line item, your left hand picked up a yellow highlighter and highlighted that item -- one of many hundreds or thousands that would be necessary in a materials take-off of any appreciable size. To force the use of the TAB-key, or the mouse to move through data-entry fields would simply guarantee that no one would use your program. Ever.
But the purist says, "Someone may stumble." Aunt Loreen said, "Sometimes the 'You shoulds' are the sh-ts."
Re: Show HN: I made a web-based notepad with a built in unit calculator
#218So
3.3 KW * 3.1 miles per KWh
Says "3.3". The math is wrong and the units are gone.Actually, it doesn't seem to understand the concept of a KW. I'll try "kilowatt" and "kilowatt-hour" respectively.
3.3 kilowatt * 3.1 miles per kilowatt-hour
Says "Incompatible units".The closest I got was
3.3 kilowatt * 3.1 miles per kiloWh
Says "10.23 kW mi".insect.sh is able to do that last one.
3.3 kilowatt * 3.1 miles per kiloWh
3.3 kW × (3.1 mi / kW·h)
= 10.23 mi/hRe: Show HN: I made a web-based notepad with a built in unit calculator
#219Why limit it to arithmetic? Looks much like the original idea behind lighttable IDE which is basically a REPL plugin that allows to evaluate certain lines within it. There are several similar projects around.
Because Turing completeness scares me! I was a big fan of Light Table when it first came out and the developers behind it have gone on to do some really interesting things, but I want to keep this project more limited in scope for now.
That can be an issue if you provide a limitless cloud instance, but you can roll the ball to user’s roof with client a side engine, either JS or a local instance, depending your vision for such an app.
Re: Show HN: I made a web-based notepad with a built in unit calculator
#220I'm trying to figure out how many "miles per hour" I get while charging my vehicle. I have a 3.3KW charger and I average 3.1 miles per KWh while driving. I expect that I am charging at a rate of 10.23 miles per hour. So 3.3 KW * 3.1 miles per KWh Says "3.3". The math is wrong and the units are gone. Actually, it doesn't seem to understand the concept of a KW. I'll try "kilowatt" and "kilowatt-hour" respectively. 3.3…
Gives "10.23 kW mi / kWh" as you expected
I guess ideally you would want it to factor out the kW.