• Welcome to the Speedsolving.com, home of the web's largest puzzle community!
    You are currently viewing our forum as a guest which gives you limited access to join discussions and access our other features.

    Registration is fast, simple and absolutely free so please, join our community of 30,000+ people from around the world today!

    If you are already a member, simply login to hide this message and begin participating in the community!

Huge qqTimer Update!

Status
Not open for further replies.
Joined
Dec 18, 2007
Messages
7,830
Likes
27
Location
a <script> tag near you
WCA
2006GOTT01
YouTube
qqwref2
Thread starter #82
The reasoning was that DNFs are usually mess-ups or times that weren't supposed to be recorded (such as forgetting to stop the timer before spending several minutes finding/fixing a pop), and a lot of people get DNFs in a session. Thus I figured it would be most useful (as a measure of skill or whatever) to give the worst *non-DNF* time.
 
Joined
Jun 10, 2010
Messages
138
Likes
0
Location
Germany
WCA
2011SCHU03
#83
Today I got an error message...does this mean that I have to delete the qqtimer cookie and thereby lose my whole session? :(

Bad Request
Your browser sent a request that this server could not understand.

Size of a request header field exceeds server limit.

Cookie: session0|1=16384,14736,13449,14812,12746,12527,14080, and so on...
 
Joined
Dec 18, 2007
Messages
7,830
Likes
27
Location
a <script> tag near you
WCA
2006GOTT01
YouTube
qqwref2
Thread starter #93
I think I remember that the last time I tried to test out localstorage it had some weird bugs/issues that made it really hard to deal with. Lucas, if you want to try to rewrite the functions to get and save cookies/sessions, I'll be interested to see if you can get them to work.
 

Lucas Garron

Super-Duper Moderator
Staff member
Joined
Jul 6, 2007
Messages
3,548
Likes
68
Location
Where the rolling foothills rise
WCA
2006GARR01
YouTube
LucasGarron
#95
I think I remember that the last time I tried to test out localstorage it had some weird bugs/issues that made it really hard to deal with. Lucas, if you want to try to rewrite the functions to get and save cookies/sessions, I'll be interested to see if you can get them to work.
I was going to look into this later, but I looked into localStorage for an assignment. Turns out that it's basically a consistent one-liner in all browsers.

These changes try to be a bit more robust by falling back to cookie support if localStorage is not available. If you want to be bold, you can literally replace each of the cookie functions by a one-liner. (localStorage.getItem(...) also returns null if the key is not found.)

This works for me in Chrome, FF, and Safari.
(Opera doesn't seem to respond to the spacebar for qqtimer at all, and I can't test IE.)
caniuse.com is very optimistic.
 
Status
Not open for further replies.
Top