DSWP Bar for Firefox

Everything technical and nerdy stuff here plz !

Re: DSWP Bar for Firefox

Postby JRandomNoob » 12.09.10

You mean the bunch of undefineds? Now that I think of it, yes, sometimes. I suppose this happens when the refresh starts while a new map is loading. (Or was it all zeros -- scores and time left... Can't remember and can't check either right now, the server's empty.) I've got WinXP SP3 *blush* (haven't installed Linux yet on this box).

User feedback on usability: the fact that refresh freezes the browser means I run it in another window, in order to be able browse normally (when my 3G connection takes a break, the freeze can be really long), which kinda defeats it's purpose. And, of course, showing zero players as one undefined player is a bit annoying, though there's no real point in jumping at every passing guest at 3 AM in the morning:-)

Overall, I like this bar, together with the whole forum and community. It doesn't happen often that I register myself as a user after few days' lurking. Never before, in fact.
User avatar
JRandomNoob
DSWP Meme Artist
 
Posts: 1852
Joined: 12.05.10
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 618.539
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08

Re: DSWP Bar for Firefox

Postby MilanFIN » 12.09.10

Did u fix it? Cause now i didn't got the message anymore.

if fixed, thanks

Edit: Nothing yet, still asks for updating, sorry i didn't wait long enough.
gets steam work on linux, plays Urt...
MilanFIN
posted some :)
 
Posts: 60
Joined: 10.05.10
Location: In my room

Re: DSWP Bar for Firefox

Postby JRandomNoob » 12.09.10

So far, I haven't seen The Wursti Bug; when a new map is loading, the bar displays "Current map: Loading next map... Next map:" as presumably intended.

JRandomNoob wrote:...the fact that refresh freezes the browser means I run it in another window, in order to be able browse normally (when my 3G connection takes a break, the freeze can be really long)...


As I write it now, my connection is fine, but the last refresh has taken more than ten minutes (in the task manager this FF process is shown as running and I can actually open files with it, just not scroll them or anything). In case it's caused by something on the -- 100% up and running -- server side, the freeze happened somewhere around 17:55 GMT +2 (the server is GMT +1?).

After killing the process it works fine once again.
User avatar
JRandomNoob
DSWP Meme Artist
 
Posts: 1852
Joined: 12.05.10
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 618.539
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08

Re: DSWP Bar for Firefox

Postby Unclefragger » 12.09.10

yes there is no timeout in the refresh and the bar blocks all general input whilst the process is running fine
due too mad wifi and router problems I stopped using the bar since it rendered my browser useless ;)
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: DSWP Bar for Firefox

Postby JRandomNoob » 12.11.10

Aha! When SvaRoX tried to recruit another test user on IRC, UFF|Frag had suitable browser, but he had doubts about whether he can really use the bar as he has NoScript installed. Inspired by this, I too installed this addon, and whaddya know, The Wursti Bug manifested itself in all of its glory. After I log in (yes, the bar is usable, as it should be), there's the bunch of undefineds, after a refresh (either automatic or by hand) everything is OK. Can be repeated reliably and consistently.

EDIT: Funny thing is, now I can see TWB even after uninstalling both NoScript and AdBlock Plus (that I had installed along with NoScript). Decidedly weird. It doesn't appear to be any global change in environment caused by those add-ons, as after restarting both Firefox and Windows TWB is still there.
Attachments
ye-olde-wursti-bug.png
(1.38 KiB) Downloaded 5351 times
User avatar
JRandomNoob
DSWP Meme Artist
 
Posts: 1852
Joined: 12.05.10
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 618.539
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08

Re: DSWP Bar for Firefox

Postby wurst » 12.12.10

can i do some in order to find the bug?
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: DSWP Bar for Firefox

Postby SvaRoX » 12.13.10

About the persistent update prompt, I know where it comes from so I will fix it.
Same for the undefined.
Regarding the freeze bug, I suspect it comes from the xmlHTTPrequest, so I will add a timeout and see what happens.

Another thing not directly related to the bar is the way it retrieves the data. The PHP page providing information about the current server status fetches data at regular intervals, despite the table is being written or not, so I think it needs a lock somewhere (account plugin and/or perso_friends.php). Wurst I'm sure you have an idea about how to do that in a clean way :)
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: DSWP Bar for Firefox

Postby JRandomNoob » 02.22.11

I know where this array bug hides! Well, approximately.

I've spent last three or four days poking at Python and writing a small plugin for Supybot (it's idling on #dswp as aimlessbot, allowing people to ask for !penis and !8ball while CuntBot is offline). After taking care for this vital stuff (and adding some silly custom stuff) I tried to emulate another useful command (namely, !status), and actually got the HTTP request part working perfectly (not surprising, it's very easy)... but apparently there's something really weird about how http://www.dswp.de/old/perso_friends.php is served, because with Python, I'm always getting the last line as "MAP:Array". No matter what, not matter which method I use and how fancy I make it. This occasionally happens with browser, too: In Firefox, everything's fine so far, but when opening http://www.dswp.de/old/perso_friends.php?etc=etc&etc=etc in IE, I got the array bug at first. And after refresh, it disappeared, exactly as in DSWP bar case.

BTW, I just refreshed the page in FF and saw "MAP:,,,,". Heh. After refresh, fine again.
User avatar
JRandomNoob
DSWP Meme Artist
 
Posts: 1852
Joined: 12.05.10
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 618.539
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08

Re: DSWP Bar for Firefox

Postby SvaRoX » 02.22.11

As I said I think it needs a lock first (sad, wurst didn't read my last post :p), then we could debug further. I'm surprised python always get wrong data, how do you retrieve it ?
JRandomNoob wrote:I've spent last three or four days poking at Python and writing a small plugin for Supybot (it's idling on #dswp as aimlessbot, allowing people to ask for !penis and !8ball while CuntBot is offline). After taking care for this vital stuff (and adding some silly custom stuff) I tried to emulate another useful command (namely, !status)

Too bad you don't code on CuntBot, it's open source you know ;)
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: DSWP Bar for Firefox

Postby wurst » 02.22.11

hmm lock?
what lock how upgrade 003? plz help.
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

PreviousNext

Who is online

Users browsing this forum: No registered users and 1 guest

Misc