« first day (1633 days earlier)      last day (3320 days later) » 

user559633
9:00 PM
Iplod is, but there's a high ranking SO user that's 13-14
 
user559633
@MartijnPieters you have my vote
 
@Martijn Uhh, nice, that should make things interesting
 
And so it came to pass that the The Dark Council controlled a majority of the moderation power on SO. And it was a time of great good.
 
and there was much rejoicing
 
user559633
9:03 PM
cheers antti
 
user559633
what's the official cabinet position of MTFL?
 
user559633
oh god do i run the deathcamp?
 
@tristan minitech was that young when he was elected I think
 
Cafeteria. You scoop the mashed taters.
 
You're like the Death of Rats, but for bad chat room posters.
 
9:05 PM
@MartijnPieters you should nominate yourself asap
 
user559633
i should probably read discwold
 
so that others will be disencouraged
 
DSM
Is there really much of a rush? It's not like people aren't going to know who Martijn is if he posts later this week.
 
^
 
and then you and joncle can seize the 2 seats more easily
:P
 
user559633
9:06 PM
@DSM that extra week might help people learn how to spell his name properly
 
I think Antti's point was "Post so people will say 'Oh well Martijn is running better quit now. In fact I should just delete my SO account'"
 
how have I suddenly become joncle @Antti ? :p
 
if Martijn does not get elected, then I will quit SO
 
Air
omg - I don't want to jinx myself, but I might have found a compromise for my Oracle view problem, without having to post a question :D
 
@JonCle you have always been joncle on everything
it sounds like "uncle" :D
 
9:07 PM
He'll always be JonnyC to me.
 
and you're fizzygood
 
the problem with martijn's name is that it is not easy to twist, damn you dutch.
 
If I get a stupid nickname, everyone gets a stupid nickname.
 
user559633
@Air if it's "i have an interview scheduled for thursday," i'd say that's an acceptable compromise to an oracle problem
 
9:07 PM
name confusion about for sopycon ahoy!
 
user559633
@Ffisegydd whatcha mean fizzypants?
 
user559633
fizzykins? fizzyman
 
Feedback appreciated!
 
needs proofreading: "you may have seen me", "I already devote", etc.
 
@MartijnPieters my feedback is that if you do not finish first, that is a big letdown
 
9:08 PM
@tristris you're my favourite, you know that?
 
DSM
The problem is that "fizzygood" is almost perfect, so no variation seems comparable.
 
or you have made too much enemies with your comments and downvotes :d
 
@Martijn "you may HAVE seen me active...". "As such, I AM already devoting..." caps are added words.
 
@AnttiHaapala And all the answer-stealing!
 
@Ffisegydd yup, doing so now.
 
9:09 PM
@poke that goes without sayin'
 
DSM
@Antti: now, now. We know Martijn would make a good moderator, but there's no reason Joe Voter who doesn't pay much attention to Meta would.
 
@MartijnPieters in the number one illuminator...
 
umm... can't link to comments? :(
 
Also, is there a reason neither @Martijn nor @Jon mentioned the chat room? Being room owner for a large room seems relevant.
 
22
Q: Election comments have no permalink link

pokeThere were previous questions on this already, and according to those it’s also implemented by now. And when looking at the source, I can indeed see an ID being set for every comment on election pages. However, unlike comments on questions, there is no actual link for the permalink for comments ...

^ bump… That’s still an issue now.
 
9:11 PM
bah - already had upvoted that
 
@davidism Lack of text space, and I forgot.
 
user559633
squeek, ik squeek. eek.
 
Not sure if positive or negative: "Oh, you again. Well… That dog picture gets my vote"
 
Oh, there's a character limit? Well this is just nomination, I'm sure we can all mention it later. :)
@Jon positive, I'm somewhat positive
 
in Stack Overflow 2015 Moderator Election Chat, 1 min ago, by Unihedro
Madara, Jon (Clements) and Martijn are my three favorite candidates. I would consider it perfectly fair if I lose to them. :)
:P
 
DSM
9:13 PM
As a room, I think we've probably spent more time thinking about things like the appropriate way to handle close votes than a random collection of a few dozen people pulled off the street.
 
@davidism I just wanted to self-promote that link there myself. Thanks ;) (that also explains the sudden upvotes)
 
@DSM Because we're organised and we want what's best
 
user559633
That and we specifically think about not being a mob.
 
sopython is not a mob? Aww.
 
We specifically give the impression that we're not a mob so we can actually be a mob behind the scenes. Now let's go burn the other nominees' houses down, of course waiting the requisite 10 minutes before lighting the Molotov cocktails.
 
user559633
9:15 PM
We haven't shut down a question in under a minute in weeks
 
We've shut down a question in under a minute, after 10 minutes.
 
Good luck @MartijnPieters too :)
 
@Ffisegydd are you doing mind reading again... cos this is getting annoying
 
in Stack Overflow 2015 Moderator Election Chat, 1 min ago, by davidism
The ninja is already a moderator, he just used the diamond as an impromptu throwing star.
 
DSM
It is an interesting question about the balance of Martijn's time-- which isn't a public resource, of course, even though it feels that way, and so he's free to distribute it how he likes. :-)
 
9:18 PM
Oliver Banks, Mattew Banks or Riley Banks? This article states all these names are rather common (don't want to use a name generator and want to keep the Banks surname)...
 
@vaultah well we know how you love Riley.
 
Meh, one-boxing doesn’t even work.
 
I laughed so hard when I woke up and read that on the star list.
 
DSM
Matthew Banks sounds like the most plausible of the three to me, FWIW.
 
@Ffisegydd :p
 
user559633
9:21 PM
I don't even begin to understand that @Ffisegydd
 
@Martijn all positive comments there :)
why couldn't I convince you last time! sighs
 
@Martijn broke the internet!
 
user559633
they're probably updating it to get direct links
 
user559633
and because it's windows, they have to reboot
 
user559633
9:23 PM
i mean squeek squeek ik squeek
 
user559633
 
@DSM thank you!
 
umm.... recognise 4 names now
(well apart from Martijn)
 
user2555451
The guy misspelled the module name.
 
9:24 PM
Kill me! Thanks :-) — srivani 12 secs ago
 
That actually made me laugh
 
user2555451
@MartijnPieters - Hey, with all your moderation work, maybe us mere mortals will finally have a shot at being the top user in the Python tag? :P
 
bluefeet posted that on Martijn's nomination
 
Okay, off to bed.
 
@iCodez As if…
Rhubarb Martijn
 
9:27 PM
Do something important right before bed. What could go wrong?
 
@I codes finally someone speaks the truth on why we want him to be modded :p
 
rhubarb
 
Derp phone autocorrect
 
Think about all those we won’t get in here any more because Martijn just insta-closes them!?!?!
 
DSM
And the circle is complete.
 
9:29 PM
This ties into our discussion earlier.
 
DSM
Hey, wait. If Martijn becomes a mod, can he see the times I've flagged his answers as too fast not an answer?
 
I really want to post "How many M&Ms are in the jar?" to the meta post about candidate questions.
 
DSM
Heh.
 
in Stack Overflow 2015 Moderator Election Chat, 46 secs ago, by davidism
Question for the candidates: How many M&Ms are in the jar?
 
DSM
9:34 PM
Okay, time to escape. Wisconsin-by-7 rhubarb for all!
 
My starbait is not as strong as @Kevin's.
 
Air
@tristan I don't have time to job hunt, and I haven't been in this position nearly long enough to call it quits and start looking. The good news is that my manager is 100% behind moving away from Oracle, it just may take us 2-3 years at this pace
 
Off to bed, rbrb all
 
user559633
@Air lol 2-3 years to switch tech. time for me to find out what you do and create a startup
 
user559633
night @vaultah
 
Air
9:38 PM
@tristan Government, bro. Good luck.
One of the other sections relies heavily on decades-old FORTRAN code that nobody understands.
 
user559633
@Air brb creating a new government
 
@Martijn thanks for comment
 
user559633
have a good night, you wonderful people.
 
hui @JeremyBanks
not sure if lack of comments is good/bad
 
10:18 PM
@JonClements I'm ecstatic that you've thrown your hat in the ring.
 
@Wayne cheers.. but I want my stetson back whether it works or not :)
 
Air
That 2.5e12 cardinality nested loop join is now a much more civil 1.5e6 cardinality hash join. And I did it without asking on SO. Ready to declare today a victory day.
 
Hi.

I need some help applying a colormap to a grayscale numpy array that is an image. I want to apply a colormap, then I'll convert it into an image.

But I don't know how to apply the colormap, and all my search efforts are fruitless. Can anyone help?
 
this is not really python question (I need to do this in java) but...
I need to generate colors in order that hue/sat/luminance is as distinct as possible, in order,
so if I have the value range [20, 240] for example, I'd want 20, 240, 130, 75, 195 ... etc
how to calculate these values neatly? :D
 
10:29 PM
And @MartijnPieters also? What an awesome day it is.
 
I guess I'd have a table of doubles with these subdivisions but how to generate even that efficiently
it is a bit too late here...
hmmm
I guess it would work by doing 0, 1; then 0, 0.5, 1; 0, 0.25, 0.5, 0.75, 1 etc and then doing "distinct"
 
I just got bit by Python default arguments being evaluated just once and cached. Haha! I'm guessing that's a rookie Python mistake everyone makes once.
 
@AnttiHaapala That's one of those things that I know and avoid, but don't understand. It seems like that's the opposite of the expected behavior in every circumstance.
 
10:45 PM
this used to be the only way to do "closures" in Python
 
bed time for me...rbrb for now
 
rbrb :-)
 
Just seen your comment
thanks
 
np – meant every word :-)
 
bacon sandwiches on me I guess? :p
 
10:49 PM
:-D
 
need to at least try to get some shut-eye, else I'm gonna be useless for anything come 8am
 
Yeah, you gotta go out and find photo ops with baby lambs tomorrow ...
 
kiss some babies, print out some cards etc.. etc,,?
 
'zackly :-)
 
dammit - I want a bacon sarnie now
 
10:53 PM
Hahaha actually I have some bacon in the fridge ...
 
blah... it can wait until eight
hey - might have just done a "poet and didn't know it" there
 
Don't give up the day job ;-P
 
or night job, or just whenever job? :p
 
cabbage
just wanted to run something by you guys before I asked an obvious question
 
anyway, bed... laters
 
10:57 PM
@JonClements rhubarb!
Am I missing an obvious way to tell if a string repeats itself multiple times?
Like '123123123123123'
 
@John Seems like fair game for a question to me. Should "abcabcabcbanana" qualify?
 
@AdamSmith No
only exact repetitions for the entire string
 
question; can multiple applications of multiple languages communicate with the same database and read each other's changes?
 
Air
@John Hmm. Interesting problem. How are you planning to approach it?
 
@corvid I would say yes, but I'm just speculating
 
Air
11:01 PM
@corvid Sure, in separate transactions; why not?
 
@Air Well I've thought about looping through characters building a pattern and checking for it, but that seems really slow, and multiply that by hundreds of huge strings and it's...not ideal
 
@Air what if one tries to read while another is writing? I'm assuming locks exist for that, right?
 
Next I looked at regexes, which seem great when you know what you're looking for, or at least the length of what you're looking for
I know neither
 
Air
@corvid How that happens depends on the database, but generally speaking the programming language the app is written in doesn't matter.
 
Air
11:03 PM
As long as the app is using a library that implements the database API faithfully.
 
I always get terrified asking a question on SO because with so many questions, the odds of it not being a dupe seem pretty low to me
 
def is_repeating(s):
    for i in range(1, len(s)//2+1):
        n = len(s)//i
        if i*n != len(s): continue
        if s[:i] * n == s:
            return True
    return False
something like that maybe
 
Air
I wonder if there's a clever hashing approach that eliminates some or all loops
Hmmm.... Tricky, tricky.
 
I was thinking about using itertools.grouper with different chunk sizes and running len(set(group)) == 1
that's probably better
 
Air
You could also start by focusing on one character at a time.
 
11:06 PM
Do python regex's allow back references?
 
yes read the docs
 
Then the regex ^(.+)\1+$ ought to do it.
 
ooh that's not a bad idea
re.match(r"(.+?)\1+$", "abcabcabcabcabc")
 
It ought to be tested for performance. I'm thinking it might backtrack like crazy.
 
I don't think it will if you use the greedy quantifier
err non-greedy
 
11:10 PM
Good idea.
 
@WayneConrad That's looking for any number of characters, and then checking for the same group?
 
@John It looks for a group of one or more character, then that group repeated one or more times.
 
@WayneConrad Thanks, I'll give it a look
 
The (...) makes a group. The \1 refers back to the matched contents of that group.
 
and make a question so I can upvote Wayne's answer -- that's smart.
 
11:11 PM
does the entire string have to be a repeat, or can some substring be repeating, with non-repeating padding on either side?
 
@davidism only exact repetitions for the entire string
 
@AdamSmith :D
@WayneConrad Ah, I see
 
If it could happen anywhere in the middle of the string, I feel like regex would take FOREVER to backtrack
but since it has to match the WHOLE string, it can be anchored to the start point. It should still take n/2 too many iterations, but I feel like regex is enough faster than string manipulations that it will still be faster
(n/2 too many since it should stop after the halfway point in a string, but will go all the way through)
 
@AdamSmith Someone else can have the vote. I'm not really a Python programmer.
 
if there are an even number of reps > 2, is it one long string repeating twice, or the smallest string repeating x times?
 
11:17 PM
@davidism I want the smallest string repeating x times, I already have a check for 1 string repeating twice
Most of them seem to be repeating 3 or 5 times
 
right, but if there's a small string repeating 4 times, then there's a string twice as long repeating two times
 
@davidism Which I think gets hit by my check and removed before it even reaches where I am now
 
ok, so you want to return the smallest repeating string
 
right
returning it isn't necessarily required
 
OK, yeah, just did some benchmarking. You definately want to use minimal match.
So let's make that regex be ^(.+?)\1+$/ instead of ^(.+)\1+$`
I made a long string by just mashing on the keyboard, including some repeating sequences. Without the minimal match operator, it took twice as long.
Oh, wait... the problem statement changed while I was away :)
 
11:24 PM
@WayneConrad If you're referring to returning it, I think I won't actually need that
 
@John Cool. It can be made to return it (or them, if there are multiple matches), I'm sure. At least in Ruby you can, and I'd be surprised if Python let itself get upstaged by Ruby.
 
@WayneConrad I was away writing my answer for a while there – looks like I came up with the same idea you did.
 
Cool. Since your idea looks like my idea, it's automatically good. I'll go upvote it.
 
@WayneConrad Words to live by.
Oh, and since you mentioned, here it is
 
Thanks :)
 
11:29 PM
:)
 
I would love to see benchmarks of the different solutions. I'm assuming Python has an easy-to-use benchmarking facility...
 
My time for today grows short. Thank you all very and I'll look into everything suggested in more detail tomorrow :)
 
Seeya John. Thanks for the fun problem.
 
My pleasure, hehe
 
Air
@John What about cases like 'aaaaa'?
 
Air
The answer so far behave differently there
 
... but right now I'm off to get a coffee. If no-one else bothers, I might run some benchmarks once recaffeinated.
 
Thanks. Dinner is about to happen here... trying to get some benchmarks done before it starts.
Benchmarks are in. I used the example strings in @ZeroPiraeus's answer, and my "mashing on the keyboard" long string.
Brute force: 0.28 Mathy: 0.43 Regex: 0.19
 
Someone who knows what they're doing in Python should redo the benchmarks, just to make sure they're right. And to produce something that can be seen in public. My Python code is... yuck.
 
11:51 PM
I've got a potential solution, need to time it first
it's related to the "math" answer, so we'll see
 
corvid it's official, you've been watching too much anime
also, that guy is really annoying
 
let's be honest, pretty much all LPers are
 
Let me direct you to the latest C&I masterpiece: The Wonderful 101.
 

« first day (1633 days earlier)      last day (3320 days later) »