Show HN: I made a web-based notepad with a built in unit calculator (opens in a new tab)numpad.io
488 pointsHi HN
It also supports percentages, dates and variables.
I've been working on this alone for a few years now, so would love to get some feedback.
Comments (239) 97 threads
Earlier comments1. the copyright notice
2. the text itself that explains that you/others have this permission/obligation
Currently, it looks like NumPad isn't doing either.
From comments here, NumPad is evidently also using decimal.js, which has similar terms.
Continue this thread — 1 reply
That's simply not true. Please don't do stuff like this—to go off and make these kind of proclamations in public. It's negligent at best.
Continue this thread — 8 replies
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
I think that second part is relevant to the discussion.
https://opensource.org/licenses/MIT
I wrote my own little calculator, much less general than this, to answer running time questions like "to run an 18 minute 5k, what would my mile pace be"? and it would be neat if that were cleanly solvable in a tool like this
I was intrigued what you had used to build it, and if you had built your own solver (which you have), and what editor you used (Code Mirror) so went looking at the code. Interesting to see you left the source maps for production, made it easy for my sleuthing...
I experimented with a similar idea last year, but used ProseMirror/TipTap as the editor to enable rich text editing, and the MathJS (https://mathjs.org) solver. I also combined it with PouchDB and Yjs for offline editing and syncing between devices. Never finished it though, you have kept your nice and simple!
Your project sounds really interesting, I'm following you on twitter now, so tweet about it if you ever finish it and hopefully I'll see.
Having CRDT-based syncing/collaboration is a direction I'd like to take NumPad in eventually, and if I have time. But I definitely think that ignoring that part completely has allowed me to get it to an MVP state.
> 100 eur to usd $-100.63 > 100 usd to eur Incompatible units
But it seems the parser is breaking when trying to do the inverse, anyway: "100 usd in eur" seems to do "e*ur" and gives "Values must be converted to units."
In reality, months/years are simply not convertible to days/weeks arithmetically, and you can’t sensibly add months to certain dates, and sometimes also not years (for February 29th). The former should give “Incompatible units”, and the latter should result in something like “Undefined” for incompatible dates.
All comments shown.
Couldn't load more comments. Check your connection and try again.