dswp.de
http://www.dswp.de/old/

DSWP Bar for Firefox
http://www.dswp.de/old/forum-gameserver-support/dswp-bar-for-firefox-t1139-80.html
Page 9 of 12

Author:  JRandomNoob [ 02.24.11 ]
Post subject:  Re: DSWP Bar for Firefox

natirips wrote:
This is just some pseudocode:
/---/

Yes, something like that (but much shorter and simpler in Python)... plus an if statement to append additional graphic for lengths over 40.0.

eXtr33m wrote:
PS: That guy (JRN) is so awesome.. its just when that guy will want to save the world he will do it believe me. :D

This isn't even obliquely related to DSWP bar anymore:-P Anybody else noticed how all threads SvaRoX starts inevitably wind up as unfounded praisefests for me?

No?

Well, about time to start the tradition, then.

EDIT: SvaRoX, by all means:
Code:
        def penis(self, irc, msg, args, text):
                mu = 14
                sigma = 10
                graph = ''
                cum = ''
                rand = abs(round(random.gauss(mu, sigma), 1))
                while len(graph) < rand / 2.5 - 1:
                        graph = graph + '='
                if rand > 40.0: # arbitrary value, use your own definition of "huge porn star cock"
                        cum = ' - - -'
                irc.reply(msg.nick + ', your penis is %s cm long. 8%sD%s' % (rand, graph, cum))
        penis = wrap(penis, &#91;additional('text')&#93;)

It's a Supybot function ready to use as a command. Randomizer comes from (the old) CuntBot; I had previously used rand = round(random.randint(1, 425)/10.0, 1) that placed the upper limit of the penis length at 42.5 cm.

Author:  natirips [ 02.24.11 ]
Post subject:  Re: DSWP Bar for Firefox

Though I never had participated in a se*ual intercourse (go ahead and laugh) so I'm not speaking from experience or anything, but do you really need more than 42.5cm?

Author:  SvaRoX [ 02.24.11 ]
Post subject:  Re: DSWP Bar for Firefox

Seems a thread can come back to life when people talk about coding :)

And the result is :
Code:
        asciiArt = '8' + '=' * int(size / 2.5) + 'D'
        if size >= 40:
            asciiArt = asciiArt + ' - - -'

Quite nice in python <3

Author:  Crusher [ 02.24.11 ]
Post subject:  Re: DSWP Bar for Firefox

Image

Author:  JRandomNoob [ 02.25.11 ]
Post subject:  Re: DSWP Bar for Firefox

natirips wrote:
Though I never had participated in a se*ual intercourse (go ahead and laugh) so I'm not speaking from experience or anything, but do you really need more than 42.5cm?

/me laffs dutifully

A fellow n*rd ^_^

You mean, is this code unrealistic? Quite so, but that doesn't matter, as digital genitalia do not follow IRL rules (most notably, even females can have remarkably large penises).

SvaRoX wrote:
Seems a thread can come back to life when people talk about coding :)

And huge dicks.

SvaRoX wrote:
Code:
        asciiArt = '8' + '=' * int(size / 2.5) + 'D'
        if size >= 40:
            asciiArt = asciiArt + ' - - -'

Cool. Another thing learned. Replaced my code with this:-)

Aimlessbot is now idling alongside with Cuntie; I split the plugin in two, and whenever Cuntie quits, main plugin loads the other one with all those emulations (and whenever Cuntie joins, unloads it).

As a side note, I've managed a rather successful threadjack. (Must resist the urge to make a dirty pun on "jacking"... must...)

Crusher wrote:
<image>

/me raises an exception: OutOfContextError

Author:  AimMe [ 02.25.11 ]
Post subject:  Re: DSWP Bar for Firefox

JRandomNoob wrote:
Crusher wrote:
<image>

/me raises an exception: OutOfContextError

No, you have bad compiler... P.E.N.I.S. suits perfectly to this di_ck measurement.

Author:  JRandomNoob [ 04.01.11 ]
Post subject:  Re: DSWP Bar for Firefox

Since SvaRoX still hasn’t released a new version of the bar, I finally tried to figure out the reasons of some of its… idiosyncracies. The player number bug was real easy (I had had a similar trouble with aimlessbot); turns out there was (.*) in a regex instead of (.+), ensuring that anything matched. So the player array was never empty. (But, speaking of aimlessbot, I’m still doing something wrong in another place, because I have to use a workaround to get it do display ‘0 players’. Hmpf.)

As seen on the accompanying illustration, I also rearranged the UI elements (copying the output of aimlessbot; to see it while Cuntie’s online, ask for !statustest). It makes more sense for me, what do others think?

OK, off to mangle Javascript again:-)

Attachments:
dswp-bar-zero-players.png
dswp-bar-zero-players.png [ 4.42 KiB | Viewed 4391 times ]

Author:  Samtron [ 04.01.11 ]
Post subject:  Re: DSWP Bar for Firefox

Hey, cool work! Can you upload your code, so that others (in fact me) can test it and have a look at it?

Probably we can get SvaRoX to sign the new version, so that the automatic update works again for everybody :)

Author:  JRandomNoob [ 04.01.11 ]
Post subject:  Re: DSWP Bar for Firefox

Samtron wrote:
Hey, cool work! Can you upload your code, so that others (in fact me) can test it and have a look at it?

There’s no code… just a single character replaced, and some cosmetic changes. I’m only poking at this thing because nobody else seems to care, not because I’d understand what I’m doing.

Anyway, I’m rather stupefied now, because it appears the dozens of restarts of Firefox broke something system-wide and frozen refresh doesn’t freeze the browser anymore. Which is all nice and good, except that it kind of shouldn’t be like this. I specifically ran the original version in offline mode, and disconnected from the net, and made a fucking fresh Firefox install, but no difference. Would someone try the following: mark “Work offline” (File menu), press Refresh on the bar, and try to scroll or change tabs or anything? It might be an example of false assumptions on my side, specifically that deliberately trying to freeze the browser would actually work… (This is supported by the fact that this deliberate freeze ends in quite short time after you re-enable the connection.)

Author:  JRandomNoob [ 04.03.11 ]
Post subject:  Re: DSWP Bar for Firefox

I still haven’t gotten anywhere with the timeout‘n’stuff, but there are few changes now… I already mentioned that empty server is now shown as such; I also prettified few strings (10 players/minutes vs 1 player/minute). Layout has changed (yell at me if you don’t like it)… If you get a hung refresh again, try logging out and in again — it now resets the refresh button, so the bar perhaps might work fine again after some indeterminable time (dunno, this is some deep magic for me). But the feature that made me post this is:

I had for quite some time wanted to distinguish the forum account owners more clearly from others, but things like “ -- ” or “   ” between the playername and the forum name weren’t noticable enough. Idly wondering why there are such wide margins in the menu, I realized that those are for ICONS!!! (and other such things). So, yeah, now there are nice UrT logos before every homie’s name (it’s the 16×16 layer from dswp.de favicon).
Attachment:
dswp-bar-icons.png
dswp-bar-icons.png [ 3.31 KiB | Viewed 4342 times ]

Attached the JAR file of the bar; I assume you, my fair reader, understand what to do with it if you download it.

JRN off to bed. *thunk*

Attachments:
dswpbar.zip [5.54 KiB]
Downloaded 490 times

Page 9 of 12 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/