If this is in a gambling context, I worry that it might be dangerous for the house. Ex. if a player recognizes that he never gets more than six heads in a row, he can adopt the strategy "bet pennies on heads until you get six in a row, then bet a million on tails"
I don't know if your generator has that particular weakness, mind.
@Kevin yeah. I would not use that in a setting where money is a factor. Haha. However, it is used in a gambling setting, with the aim of reducing the frustration probability. I added loss streak counting and cleaned up the code a bit: http://pastebin.com/mD5PqmRh
I have a feeling that any algorithm that reduces streaks, could be gamed by clever users. But I suppose that's fine, as long as you're not putting your own money on the line ;-)
Fellow starbaiters may be interested in this userscript, which tells you whether your message will fit on the starred list without being shortened. This message is apparently too large by 98.
Kevin Kevinson I approve of your use of "laser" over "lazer". If more Americans were like you then...well...the economy would probably collapse from mass-MtG-purchases.
thnx I think this solve problem But I got error UndefinedError: 'users' is undefined for jinja in "<br> {% for friend in user.is_bestfriend %} {{ friend.name.capitalize() }} is Best friend <br>{%endfor%}</div>" can u help me or I should ask new question ? @davidism — Linda4 mins ago
And it seems like we're really talking about attributes of a class instance, not an instance of a class -- although the question turns out to be entirely different, and about finding keys.
But I couldn't make new bestfriend it is unchangeable I think how can I do something to make it change so if I want to be friend with new user it would be possible @davidism — Linda1 min ago
@Ffisegydd I loved it too, especially the first episode's end, when he finally turned to the "fourth wall" and started speak to us.. I had goose-bumps IIRC :)
Anything not on Nickelodeon or Cartoon Network was an afterthought for me, really.
Even Kid's WB was a crapshoot, mostly due to its shuffling schedule. Maybe you get Animaniacs, maybe you get Batman: The Animated Series (at the time I was too young to recognize its greatness)
Getting 80% of the way through Dragonball Z's longest arc, one episode a day, only for it to start over at the beginning so they had more time to dub the rest, may have legitimately traumatized me.
Oh man, planet Namek's going to explode, I can't wait for tomorrow! ... Why are they back on Earth?
@DSM the movie is a different timeline, the sequel covered no new ground in terms of concepts and message, and had a really convoluted and full-of-holes plot
[reading through the soundtrack listing] Oh, I forgot Sakura! Liked that one too.
Nirgilis did Snow Kiss, too, which I also liked. Every time I hear it I think it'd be the perfect music for a movie trailer about a Japanese exchange student who visits Vancouver and falls for one of the locals. "5000 miles. 20 degrees below zero. Two cultures. Only one way the story ends." Cue Snow Kiss chorus.
I tried 192 different CRC algorithms with these 88 hexes from the string with 44 bytes decoded and hex through the CRC as is, for a total of 1152 combinations, hypothetical line endings from files and so on, and matched them against both values and their byteswapped versions and couldn't find a match for among any of them. — Antti Haapala6 mins ago
@MartijnPieters I have had to solve CRCs myself so I decided that I make a program with PyCrc and copied all polys from wikipedia to aid myself better, but the huge letdown was when I realized that OP's code does not even spit out the result they was sayin'
@Kevin: it'll overflow in Python 2 if the number is really big, but if the number is really big we should be using an inclusion-exclusion formula anyhow.
>>> xrange(1,10**20)
Traceback (most recent call last):
File "<ipython-input-1-89eac6e79119>", line 1, in <module>
xrange(1,10**20)
OverflowError: Python int too large to convert to C long
but really the problem seems to be just that it's really slow.
That topic has come up a few times, i18n of keywords I mean. It's not crazy to want it, but I don't know how much my scepticism of the net benefits is affected by the fact I speak English and it's basically won the field.