DSWP Bar for Firefox

Everything technical and nerdy stuff here plz !

Re: DSWP Bar for Firefox

Postby JRandomNoob » 02.24.11

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: Select all
   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, [additional('text')])

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.
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 natirips » 02.24.11

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?
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
User avatar
natirips
[dswp]R.Stallman
 
Posts: 2946
Joined: 04.13.09
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60

Re: DSWP Bar for Firefox

Postby SvaRoX » 02.24.11

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

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

Quite nice in python <3
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 Crusher » 02.24.11

Image
User avatar
Crusher
Godlike
 
Posts: 1602
Joined: 08.30.08
-----tdm:  
nick: Blah
skill: 1113.98
kills: 15850
deaths: 10118
ratio: 1.56
-----bomb:  
nick: I_Play_Games
skill: 734.04
kills: 2551
deaths: 2228
ratio: 1.14

Re: DSWP Bar for Firefox

Postby JRandomNoob » 02.25.11

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: Select all
        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
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 AimMe » 02.25.11

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.
Image
User avatar
AimMe
Godlike
 
Posts: 2318
Joined: 09.28.08
Location: Solar System

Re: DSWP Bar for Firefox

Postby JRandomNoob » 04.01.11

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
(4.42 KiB) Downloaded 4756 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 Samtron » 04.01.11

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 :)
Image
User avatar
Samtron
Godlike
 
Posts: 1296
Joined: 01.08.09
Location: Berlin, Germany
-----tdm:  
nick: Samtron
skill: 584.92
kills: 316
deaths: 269
ratio: 1.17

Re: DSWP Bar for Firefox

Postby JRandomNoob » 04.01.11

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.)
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 JRandomNoob » 04.03.11

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).
dswp-bar-icons.png
(3.31 KiB) Downloaded 4707 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 535 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

PreviousNext

Who is online

Users browsing this forum: No registered users and 31 guests

Misc

cron