Screwtape |
Posted on 20-01-22, 11:18
|
Full mod
Post: #383 of 443 Since: 10-30-18 Last post: 1101 days Last view: 172 days |
Way back at the dawn of the microcomputing age, nerdy husbands bought little plastic boxes that could barely beep or display text, and justified the purchase-price to their wives with things like "I can use it to calculate the fuel efficiency of our car!" or "you can store your recipes on it!". Recently I encountered a problem of similar scope, and I wondered what the modern equivalent of those old BASIC programs is. To be specific: - I have a 700W microwave oven - Most of the food I want to heat says something like "For a 1000W oven, heat on full power for 6 minutes" - Therefore, I want a program that lets me type a number of minutes, multiplies it by 1.4, and renders the result as minutes and seconds - For example, 6 * 1.4 = 8.3999999, or 8 minutes 24 seconds So far as I can tell, my options are: - Make a webpage that does the calculation in JS, host it on a server somewhere. This is fairly straightforward and very flexible, but I hate the idea of needing an internet connection to make my phone do a thing. - Make a webpage that's a Progressive Web App with all the caching and push-notification stuff, so that the phone will cache it locally and I can run it offline. This is a lot of hoops to jump through to get the thing I want. - Write a native Android app from scratch. No, just no. - Install Python in Termux, and set up a home-screen shortcut that runs a Python script that prompts for a number then prints out the result. This is probably the best option so far, but I am disappointed if after forty years this is still the best we can do. I feel like somebody must have made some kind of spread-sheet like app where I set up labelled inputs, write a function that calculates an output, and lets me create a home-screen shortcut that runs the thing. Has anybody heard of such a beast? The ending of the words is ALMSIVI. |
creaothceann |
Posted on 20-01-22, 14:51
|
Post: #238 of 456 Since: 10-29-18 Last post: 44 days Last view: 1 day |
- Make one or several diagrams and put them into an image or PDF file My current setup: Super Famicom ("2/1/3" SNS-CPU-1CHIP-02) → SCART → OSSC → StarTech USB3HDCAP → AmaRecTV 3.10 |
Duck Penis |
Posted on 20-01-22, 16:00
|
Stirrer of Shit
Post: #708 of 717 Since: 01-26-19 Last post: 1763 days Last view: 1761 days |
You take a piece of paper, a ballpoint pen, and write a chart. You could also take an old calculator, duct-tape it nearby the microwave, and store as a function 999940floor(10x/7) + 600x/7. I don't recommend this. If you desperately want the phone to do it though, there's a trivial solution. Write a webpage, encode it all in one file using <script></script> tags, then encode it as a data URI and bookmark it. This works fine without Internet. There was a certain photograph about which you had a hallucination. You believed that you had actually held it in your hands. It was a photograph something like this. |
funkyass |
Posted on 20-01-22, 17:06 (revision 2)
|
Post: #124 of 202
Since: 11-01-18 Last post: 660 days Last view: 15 days |
*get a calculator app that converts decimal to Min/sec/degrees. *get a new microwave. |
tomman |
Posted on 20-01-22, 19:14
|
Dinosaur
Post: #617 of 1315 Since: 10-30-18 Last post: 58 days Last view: 13 hours |
- Install a notepad "app" so you can store your formulas, then pick a good calculator "app". Bonus points if the calculator "app" do allow you to define your own formulas. - Spreadsheets, that's why they're for, and you can run them on cellphones nowadays. Except that all spreadsheet "apps" I've tried are terrible (including the MS and Google offerings). But then, I guess that office apps don't belong to cellphones beyond "view-only" purposes. - Do you own an expensive phone that can emulate older computers? Then figure out how to QEMU (or whatever) Windows 3.x/95, and use that to run some Visual Basic 3/6 app. Or something that actually allows you to not download half the Internet and install a bazillion frameworks just to write a "Babby's First Calculator for cellphones". - A J2ME emulator? Oh wait, I forgot that J2ME was beyond terrible (I actually wrote a MIDlet over a decade ago, not fun at all), but then I'll take that any day of the week instead of modern smartdevice "apps". - I actually did this once on an old Blackberry (a local Engineering code calculator was required, and all the native BB apps I could find were 404'd since forever): a standalone HTML+JS application that lives somewhere at your local filesystem (assuming you own an actual pocket computer that lets you store arbitrary files on its storage devices, instead of forcing you to interact with crippled proprietary junk that only lets you upload multimedia files). You DON'T have to use Every Hipster JS Framework™ under the sun - vanilla JS is good enough for that. Licensed Pirate® since 2006, 100% Buttcoin™-free, enemy of All Things JavaScript™ |
wertigon |
Posted on 20-01-23, 08:55
|
Post: #119 of 205
Since: 11-24-18 Last post: 155 days Last view: 27 days |
The conversion is super simple to do actually with a clear and concise pattern, 1.4 * 1m = 1m 24s. Since function is linear, we can rewrite it as thus: 1.4*x minutes = x minutes + 24*x seconds = (60 + 24)*x seconds = 84*x seconds So, see the table below what that looks like. One interesting point to note is that for every five minutes you add 2 minutes and it repeats every five minutes - hence you only need to know the seconds for the first five minutes - which is pretty easy to keep track of. :) This is the power of math, people!
|