Kart Calculator-itsid

Status
Not open for further replies.

Mrmonk7663

Member
Messages
456
Reaction score
0
Location
Houston, Texas
Hey bud. I’ve been using your calculator a while with great results. Today I used it and it seems to have changed. Before when entering wheel height all was fine. Now when I enter wheel height it converts it’s down. For instance, on my mini bike I enter 19. It then converts it to inches when I calculate (7.48). Basically the input value is being read as cm and it’s being converted to inches. Clicking on the settings and changing then has no effect. This has never happened in the past. Did something in the code glitch up?

Thanks!
 

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
Code hasn't changed in years

check the settings tab (gear icon on the page footer or on the start screen)
make sure you'll have the first option "Input length in" is set to "cm" (yes)
and fully close the browser tab and best the browser, reopen the page
and check if the setting is still set to "cm",
Now change it to "in", close the webpage (ideally restart the browser app)
reopen it and check if it has changed back to "cm"

if it did not, you should be good to go.

All settings are stored in a cookie (persistent in local storage)
on reloading the website it triggers a code to realign the toggle switches
according to what settings have been made.
Some browsers have trouble "forgetting" websites so a simple reload doesn't always work
(that's why I asked you to reload by closing the website and ideally the browser
and that includes removing it from the list of background tasks of course ;))

If it switches itself back to "cm" on relaunching the website,
you'll have your local storage corrupted
(security tools installed lately? manually changed cookie permissions? or Updated the browser app?)
in that case unfortunately all you could do is remove the local storage for kartcalc.net
and have it rebuilt the next time you start the app.
if you have any karts stored in the "my karts" tab,
let me know before you do, maybe we can save them


'sid
 
Last edited:

Mrmonk7663

Member
Messages
456
Reaction score
0
Location
Houston, Texas
It must have something to do with the latest Apple updates. I deleted my cookie and stored info for kartcalc. Retried. No matter what setting I use it still defaults to cm as soon as I calculate. The setting will not store. I’ll try on the computer later.

Edit-justvtried in my brother’s non updated iPhone. It works fine. So definitely something to do with the Apple updates recently.
 

BigWes

Member
Messages
829
Reaction score
4
Location
Alabama
It must have something to do with the latest Apple updates. I deleted my cookie and stored info for kartcalc. Retried. No matter what setting I use it still defaults to cm as soon as I calculate. The setting will not store. I’ll try on the computer later.

Edit-justvtried in my brother’s non updated iPhone. It works fine. So definitely something to do with the Apple updates recently.

My wife uses an Apple phone... it's been jacked up since the last update... I been hearing lots of people complaining about it.
 

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
What makes me wonder though is
it defaults to inches kg and km/h
and while that's inconsistent it's the most convenient even for real metricians :D

Hang on,
close the Safari Browser,
check in "Settings -> Safari" and make sure "Block all cookies" is turned off
then scroll down click on "Advanced" then I think it's "Website Data"
click on edit and remove websitedata for kartcalc.net
(that unfortunately deletes the local database as well.. so all stored karts will be gone **)
it also deletes all cookies, which is what we're after atm.

Now, reopen safari and kartcalc.net should set new cookies (default ones)
and before you alter the settings, check that wheel diameter is now in inches.
if it is.. change to lbs and mph if you like
check again and report back.

Once your settings are as you want them to be (and working) you can block all cookies again if you want to.
(my web-app doesn't mind much)


**
In case you want the kart to be backed up on my global database,
open the kart in your db, tap on the "Tacho" button in the footer and back out again,
confirm storage of performance data.
the "tacho" button should now read "share" and will push the information to my website's database.
Unfortunately, the app has no way to reread that information back into your device's database,
but at least you have the information readable.

Proper speedrun is unlikely going to work these days (https and such),
but if you see hands on the dials...
you're lucky and can indeed get a reading ;)

'sid
 

Mrmonk7663

Member
Messages
456
Reaction score
0
Location
Houston, Texas
Still a no go. Deleted all data. Restarted browser. The settings default to all US settings but they do not register. When you calculate it displays in cm (not us to metric...it just adds metric to the end of whatever you inputted originally. So 19 inches becomes 19 cm. If you click the settings and change them to metric...same result. 19cm input will yield 19cm output (as expected in this case)

No telling what Apple did.
 

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
Oh I think I know..
shoot.

would you please verify that you also cannot use weights in lbs?
and that those are taken as kg when calculating?

If so, I think I found the culprit...

oh I hate ios updates sooooo much!

'sid
 

Mrmonk7663

Member
Messages
456
Reaction score
0
Location
Houston, Texas
Same thing with weight. Settings defaulted to ALL US measurements without clicking anything. Inputting 100 and clicking calculate and the result simply changes to 100kg. On my brothers’s phone I noticed that the default was US for tire size and metric for weight and speed...on the new update it’s all US but doesn’t work.
 

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
nono, the Imperial settings are made by you,
apart from inches for wheel size nothing in this app defaults to imperial measurements
so if you see the lbs or mph toggle switch set,
it means you must have set that switch before.
(maybe local storage hassn't properly cleared earlier..
I had such 'not actually deleting' website data on my iPhone a couple of times
(when there were traces of safari still running for one reason or another;
mostly third party apps in background that use parts of the safari browser)

but since you said it's the same with weight as I expected,
I am fairly certain I know the reason.

Now I only need to find the fix ;)

'sid

PS Have you checked any other browser on ios? Chrome or Firefox perhaps... Opera maybe?
 

Mrmonk7663

Member
Messages
456
Reaction score
0
Location
Houston, Texas
I just downloaded opera to test. Same result. I am attaching pictures to how it defaults and the result to clear any confusion.
 

Attachments

  • DCC30A32-094D-460C-A731-AD18AD146F47.jpg
    DCC30A32-094D-460C-A731-AD18AD146F47.jpg
    121.7 KB · Views: 2
  • 5D49FA2E-96CE-48C0-BC37-C5536C7B54F0.jpg
    5D49FA2E-96CE-48C0-BC37-C5536C7B54F0.jpg
    123.5 KB · Views: 3
  • C7E2C487-7EC9-4637-BC56-57A1B17C64AC.jpg
    C7E2C487-7EC9-4637-BC56-57A1B17C64AC.jpg
    134.7 KB · Views: 2

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
Shoot, if the default values are incorrectly set (or rather not set at all)
that means the problem starts way earlier and not where I expected it to originate from..
Well unless there are now two (or more) problems of course in that regard.

I'll let you know when I updated the code (hopefully to a working state again)

And thanks for testing with Opera,
hopefully I can replicate that behaviour with a recent Opera
on my older ios, so I do not have to ask you to test my fixes :D

'sid
 

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
yeah I noticed the blue icon ;)

Trouble is, I cannot even install the latest versions of these on any of my phones :(
But not all is lost, I can have my wife install the browsers for me..
she's on 12.6 or such so that'll work.

[EDIT]

The app will no longer run in safari since ios 13..
developer.apple.com said:
Removed Features
*Removed support for WebSQL.
WebSQL is exactly where the "local list of karts" is stored.
and also the persistent cookies.
So unless some browser still manages to sneak in localStorage support on an ios13 device
this now marks the end of life for this webapp on iDevices

have I mentioned how I hate ios updates?

Anyways.. I started on created a native iPhone/Pad-App a few years ago,
but XCode is a PITA to use for a notepad coder like me,
I'll see if I finally give it a go again to step up...
or step down to a simpler website with just the quick calc functionality.
Haven't decided yet

'sid
 

Mrmonk7663

Member
Messages
456
Reaction score
0
Location
Houston, Texas
Well thank you for looking into it. It’s a great and useful app. It sucks that the ios update isn’t compatible but at least you discovered why. A stand-alone app would be awesome for sure but I can’t begin to imagine the work involved. I used to do some coding making custom excel spreadsheets when I tuned mazdaspeed a and that was no cake walk. To make an actual app, above my knowledge level haha.


Edit Edit Edit

Ok since you identified the root cause I did some searching. For iPhone users on 13.0 or greater, go to settings, safari, advanced, experimental features. Scroll down and you will see a toggle box next to web sql. Uncheck the box. Restart safari. Voila. The kart calculator is working as it always had now.

Even though the web sql is now deactivated by default it still exists. Future updates might remove it totally but for now follow the above steps and you are back in business.
 

itsid

Moderator
Staff member
Messages
11,564
Reaction score
116
Location
Ruhrpott [Germany]
Ok since you identified the root cause I did some searching. For iPhone users on 13.0 or greater, go to settings, safari, advanced, experimental features. Scroll down and you will see a toggle box next to web sql. Uncheck the box. Restart safari. Voila. The kart calculator is working as it always had now.

Even though the web sql is now deactivated by default it still exists. Future updates might remove it totally but for now follow the above steps and you are back in business.

AWESOME!
:thumbsup:
There was no mentioning of that toggle switch on the websites I found

experimental features
websql was on iPhones since ios3 [IPhone 3GS] and working for sure
How experimental could that be by now?

Anyways, thank you for sharing that fix.
I suspect WebSQL will be fully removed within the next few updates however...
so I better get started.

'sid
 
Status
Not open for further replies.
Top