« first day (2473 days earlier)      last day (2475 days later) » 

7:02 PM
@PM2Ring commented with list(range(10))
 
His previous version had indices = [[i] for i in range(10)], but you can't see it in the history because he edited it within the grace period.
 
Yeah. Unfortunately, what range(10) yields is missed by quite a few people.
 
@PM2Ring wow
in Android, 2 mins ago, by Tim Castelijns
Noooooo they are killing Ms paint https://www.theguardian.com/technology/2017/jul/24/microsoft-paint-kill-off-afte‌​r-32-years-graphics-editing-program?CMP=fb_gu
 
@idjaw what do you mean by this?
 
7:17 PM
def range(n):
  i = 0
  while i < n:
    yield i
or something similar
 
ah
 
I need a break, c# is kicking my booty :( what are people up too ?
 
@MooingRawr currently researching as many problems people in other companies are trying to solve as relates to anything QA/CI related...
 
@Code-Apprentice Sort of. range returns a range object that's gives it a few more features than a plain generator, like being able to do in tests with it. Also, you can do r=range(5), and loop over r multiple times. You can't do that with a simple generator.
 
Cbg, for those who are familiar with logging, is there a way, in the main module, to set configurations of loggers in a function in a different module, and use the same configuration throughout all child modules?
 
7:20 PM
I think idjaw is saying that you can't shuffle a range.
>>> import random
>>> x = range(10)
>>> random.shuffle(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Programming\Python 3.5\lib\random.py", line 272, in shuffle
    x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment
(In 3.X at least)
 
That too.
 
I don't think I understand how the logging library works 100% :P
 
But you can pass a range to random.sample, which is handy.
 
@enderland are you having fun ?
 
I wanted to follow this stack overflow post about logging: stackoverflow.com/questions/15727420/…
 
7:22 PM
@MooingRawr sort of, I basically have a standing instruction to figure out as many areas of opportunity as possible and keep track of them
 
DSM
@PM2Ring: have I mentioned lately that ever since you showed me that nice history-free-unique-sample code I keep seeing uses for it? :-)
 
Hello. I have posted this question and it hasn't received any substantial contribution yet and another user has agreed with the conundrum I'm facing. Is there a way to garner more attention to this question? stackoverflow.com/questions/45244619/…
 
Start a bounty?
 
stackoverflow.com/q/45288499 mcve typo (@app.route missing @)
 
@DSM No, you haven't. Until now. :) I was just thinking about that, because its shuffling is easy to invert. I was almost tempted to use it (or a simplified version of it) for that shuffling question, but I didn't want to overwhelm the OP. So I ended up just doing this instead.
 
7:50 PM
@davidism I love the broken image link. :)
 
if you're including code as an image, you might as well break the url while you're at it
 
the image works for me
 
@Jonathan Sorry, I don't know cv, so it's not easy for me to follow that code. But the calc_sloop_change function is a bit weird. It has an arg mode that it doesn't use, and it needlessly recalculates max(1, tolerance) on every loop iteration. And there's a better way to write that loop. Give me a minute & I'll post a better version.
 
did someone edit it?
 
should i encrypt cookies using AES
 
7:54 PM
@Code-Apprentice The link works, but the bracketed text before it is weird.
 
yes...probably because of the new lines. I considered editing to fix that and some grammar, but it is likely slated for deletion soon anyway...
@Tobiq Is your question "Should I use AES to encrypt cookies?" or "Should I encrypt cookies rather than storing plain text?"
 
no?
use aes
 
I am not an expert on cookies, so I can't really answer. I just wanted to clarify your question.
 
@Jonathan Questions asking for an explanation of 3rd-party algorithms don't really fit well on SO. You might do better on Software Engineering.
 
@PM2Ring I actually think that question would be a better fit there too
 
7:59 PM
bleh...I cannot test my current project against historical stock/futures data because of certain techniques I am using. So I have to wait for live data to become available. Talk about long turn around in the dev cycle. ;-(
 
0
Q: Should I encrypt my cookies using AES?

TobiI'm going to encrypt the following data (server side): email, IP, username I want to keep user name in cookie so I don't have to access database everytime I insert the username into the users page. Is this a bad idea?

 
@PM2Ring or maybe signal processing cc @Jonathan
 
@Jonathan Here's my version. I've kept the mode arg, so you don't need to change the calling code. Note that this version, like the original, will return None if it doesn't find a histo value > tolerance.
def calc_sloop_change(histo, mode, tolerance):
    tolerance = max(1, tolerance)
    for sloop, val in enumerate(histo):
        if val > tolerance:
            return sloop
 
mod voting has begun
 
@Jonathan I just removed the image tag, since it's not really necessary: image-processing covers it, and the edit bumps your question to the front page, which might be helpful.
 
8:09 PM
TIL "reggaeton beat" is the name of that drum beat I hear in a lot of latin american songs
 
@PM2Ring I think that's a "please write this algorithm for me" question?
 
@enderland It's not even that! He hasn't told us what he want to do with the real coefficients, so it's impossible to answer without massive guessing.
 
I suppose he wants to re-order the coefficients so that n1*c1 + n2*c2 + n3*c3 + n4*c4 is minimized, or maximized, but that is just a guess.
 
8:55 PM
Yet another Tkinter quirk: stackoverflow.com/questions/45289237/…
 
I like how COLDSPEED handles things nowadays.
Do you know what you're doing? — cᴏʟᴅsᴘᴇᴇᴅ 2 mins ago
 
if only they slowed down their FGITW sometimes.
wow...I passed out hard...just woke up from a wonderful nap
 
welcome back to reality. enjoy your stay.
 
Isn't that the name of that edgy hedgehog?
 
@idjaw sometimes they do...it's 50-50
they used to be worse and I was bugging them about it
 
9:00 PM
ah. I didn't know you pulled out the Andras hammer :)
 
Jul 15 at 21:49, by cᴏʟᴅsᴘᴇᴇᴅ
I refrain from doing that now :) Leaning towards dv/close if it's unsalvageable... a comment if it's basic, and an answer otherwise.
 
ah
 
the bugging was probably months ago
they were quite susceptible to my prodding
 
@AndrasDeak And they aren't so persistent about asking for accepts & upvotes. But I just saw an answer from cᴏʟᴅsᴘᴇᴇᴅ were the OP posted 2 "thanks!" comments, and gave them the accept, but didn't upvote, even though he has enough rep to do so. stackoverflow.com/a/45289457/4014959
 
well you can always educate OPs like that
 
DSM
9:09 PM
Now that the work day is over I want to go out and explore but the weather is a little dismal. :-/
 
get an umbrella and explore @DSM
 
explore the seas
 
you are in SD and the day is over already?
 
DSM
One of those is true..
 
I thought you said you were in san diego
 
9:23 PM
I don't think he ever said that
unless there's a San Diego in Canada
 
I think enderland travelled through timeline 3445
 
DSM
I suspect I know who you're confusing me with, though.. and if you drop a few letters from his name you'll get mine..
 
that is the arch where DSM decided to unleash his true DSM power and take over the west coast
everyone was a NumberFirm minion
 
@DSM good, so I'm not 100% crazy
just... likely crazy
 
no no... you are crazy....just a lower degree of crazy
 
9:44 PM
I think that's good
 
9:56 PM
yeah I'd take that as a win
 

« first day (2473 days earlier)      last day (2475 days later) »