« first day (1474 days earlier)      last day (3469 days later) » 

7:04 PM
Homework copypasta. Also, really weird.
 
Done
 
"What are the types of the input [of the function?]" In dynamically typed languages, the input is whatever your heart desires.
 
user559633
aww i was going to troll that asker
 
I was thinking of half trolling them. "the answer to #2 is 'because apply_generic is not a built in function, and would only cause the program to crash'"
 
user559633
also lol at #2 -- he didn't even lazy ask the question correctly
 
7:06 PM
@tristan aww - was the MTFL bursting to get out?
 
this function makes sense for getting greyscale, right?
def to_greyscale(image):
    """ return the image as greyscale """
    grey_img = np.zeros((image.shape[0], image.shape[1]))
    for row in range(len(image)):
        for column in range(len(image[row])):
            grey_img[row][column] = np.average(image[row][column])
    return grey_img
 
@Ffisegydd, ooh, your meta post is on the hot questions sidebar. You're Internet Famous!!!
 
DSM
I knew him when.
 
Finally, some recognition...
 
@corvid Seems fine, yeah.
That's how I do grayscale - average the three color channels together. I don't use np to do it, though.
 
7:08 PM
it's making my crow look like a colorful parrot :|
 
hmm, maybe your indices are in the wrong order.
 
DSM
@corvid: mean is a method of ndarrays, so I think you can avoid looping.
 
The idea is sound, not sure about the implementation.
If image is a PIL pixel access object, the x coordinate should go first.
 
user559633
@JonClements but i was going to give one of those weirdly overspecific and deep answers
 
Uh, I think.
 
user559633
7:10 PM
like that guy that some idiot was like "YOU ARE WRONG" about linux internals or like a print statement or something and i responded with gdb output
 
@Ffisegydd which question!!!?
ahh found it
@TravisJ as one of the owners of one of the most popular rooms in SO, I can assure you that's not always the case. — Zero Piraeus 25 mins ago
@Zero ^^^ Wat!? Are you moonlighting on us! :)
 
Hey, we're popular aren't we? Please say we're popular ...
 
That's a typo, he meant pompular. We've got insane pomp in here.
 
user559633
i feel as if we're a popular room, especially considering the relative unpopularity of python
 
user559633
we got pomp for days, girlfriend snaps fingers
 
7:19 PM
A commenter says, "I really don't understand what problem this is trying to solve." What was the original motivation here? Trying to ping all the ROs about the room meeting next week?
 
That was what I first wanted it for, then I realised it might be nice in general if users who needed to contact an RO could just @RoomOwners
 
I could see it being useful for administrative purposes, yeah
 
DSM
They call me Fizzygood...;_; / desouffle / Let's go scuba diving. / “Only those who will risk going too far can possibly find out how far one can go.” — T.S. Eliot
I kind of feel like I'm letting the side down.
 
Who has the T.S. Eliot quote?
 
@ZeroPiraeus thank you, testdisk did the job :)
 
DSM
7:25 PM
PV.
 
@vaultah Glad to hear it :-)
 
@DSM yeah... why don't you have a link to the room in your profile darn it!
 
I'm satisfied with my entirely vague job description and proficiencies list :-)
 
DSM
Preserving plausible deniability.
 
Oh hey, you can have an about message in chat separate from your main profile.
 
7:28 PM
"A star for me is a star for democracy" - Kevin Kevinson.
7
 
But: "A star for me is one less star for Kevin"! Vote now!
 
user559633
"You miss 100% of the shots you don't take" -- Alcoholic slurring at me from the bar
 
I can't put anything in my about section, because I want my words to be ephemeral. Like a snowflake melting in the palm of your hand. Beautiful yet fleeting.
 
@Kevin your words would be far more fleeting were they not starred though...
 
DSM
@tristan: fortunately distance makes it unlikely, but that's the sort of thing I would say..
 
7:35 PM
Like a snowflake melting in sub-zero Antarctica.
So, "not melting" I guess.
 
user559633
@DSM no one actually said that :/ i just heard someone saying tired nothingisms
 
@Ffisegydd I started a room for me and Travis J in order to try and clear the air without filling up the comment thread; since he hasn't responded there but continues to trash talk me in public, I don't think it's worth engaging with him.
 
@Zero yeah I wasn't going to engage anymore anyway.
 
DSM
Also "defence wins championships", and "he's good, but he's not clutch."
 
user559633
"defense is for my lawyers"
 
user559633
7:41 PM
"he's good, but he's not clutch" -- anthropomorphized gas pedal talking about why she broke up with "brake pedal"
 
DSM
That got strange fast.
 
user559633
that's what she said
 
Argh, Zero closed it second before me :(
 
user559633
(to the court appointed psychologist at my trial)
 
user559633
7:43 PM
pro tip: if your haunted house isn't, don't hire people off the internet
 
user559633
"oooOOOooOOooo this house is haunted by the ghosts of furry past"
 
user559633
anyway. moving on. how would you feel using a class that required passing multiple dictionaries as parameters?
 
Justifiable in cases of irreducible complexity.
I might go "yeah, I can see why you'd do that" or I might go "lazy API designer, why you no simplify?"
 
user559633
Yeah, this is for emailing.

e.g.

m = MandrillEmail(message_subject='hi', message_body_dict={'text':'message body'},
recipient_dict={'name': 'tristan', 'email': 'me@narcissism.me'})
 
hmm, trying to decide if I'd prefer one big glob of named arguments. Just message_subject, message_body_text, recipient_name, recipient_email all supplied as **kargs.
 
user559633
7:47 PM
the rest i obscure, but message_body_dict, recipient dict are properties and the instantiation of MandrillEmail holds onto the api key/other setup
 
user559633
yeah, i was thinking of simplicity later for when the recipient dict will be a list and the message body will only change
 
user559633
[e.g. broadcast mailings]
 
ahh.. have you seen this?
 
Cabbage.
 
cbg(all)
(btw sorry for the hungarian actual politic reference)
 
7:53 PM
Hmm, I thought my big book of design patterns had something for reducing complexity of constructors. There's builder, but that doesn't quite fit the use case here.
 
@Ffisegydd Just fyi. I’m not around until the evening of Nov 6th.
 
user559633
i hadn't! have you seen this? vimeo.com/109169719
 
user559633
thanks, reading that @Kevin all the same. just thinking that the object initial instantiation would be via the call, then calls to proerties to set things
 
that is just brilliant
 
@poke cool cheers. Anyone else have any days they can't make?
 
user559633
7:55 PM
e.g. my_obj.message_body='hi hi hi' is my setter
 
In which case might make it the week after so I'll be busy on Friday 7th.
 
@JonClements morning
 
Setting properties after construction seems mostly fine to me
 
I haven't been very active in this room recently...
 
@Code indeed :)
 
7:56 PM
mostly I hang out in Android
 
user559633
@Kevin yeah, i suspect that 's mostly how it will be used
 
scripter, programmer, it's all just names bro
 
DSM
I'm a scripter programmer developer!
 
user559633
programmar**
 
8:01 PM
I am a presser of buttons, and observer of blinking lights.
 
Well.. I'm voting to reopen that so we can close it as a dupe of the CW
 
user559633
I went for an interview and it was amazing how low stress and kind of fun interviews are when you don't really care if you have a job
 
DSM
@Kevin: I think the British tend to stick the extra "ta" in there. Not sure why.
 
@tristan pointer to pointer to programmer?
 
user559633
8:02 PM
"yeah, i guess i could help you with that, part X sounds good, part Y, not so much. want to talk about C or what i'm hacking on?"
 
DSM
@Jon: did so too.
 
user559633
@PeterVaro heh, was a joke about the proper spelling of grammar, but i couldn't get the pieces together.
 
Just 2 more guys
 
Well... OK, if it's standard practice to dupe-vote questions that are off topic, as long as there's historical precedence. voted to open.
 
DSM
I didn't think it was standard practice, but I don't want to be the only guy not playing. :-)
 
8:03 PM
oh...python supports 0 < x < n syntax?
 
Yes.
 
user559633
reminds me of when i used to name everything *laser
 
TIL
star laser?
 
user559633
it also supports chaining like a = b = c = 0
 
Well... it points people that are going to ask something similar in the future to the historic question, which points out why it's not a good current question, but still sign posts to one that was
 
user559633
8:04 PM
laser pointer HEHEHHEHeheheh i will die alone and my cats will eat the evidence that i ever existed
 
*lord; #who?
 
one more guys?
 
all imperative languages I know support chaining assignments.
 
DSM
@Marcus: If you're asking who is the local starlord, it's Kevin Kevinson.
 
user559633
kevin "the kevster" mckevinston
 
DSM
8:05 PM
Jon, you want the honours?
 
Err... maybe cough
retro-active thanks for asking :)
 
Success!
 
@JonClements Reopened and prime for reclosing ...
 
DSM
First we need to search for a popular dupe target. ;-)
 
8:09 PM
LOL
 
user559633
I'll open a question called "how do i ask a shitty question" and then you can close it and use it as the canonical
 
Problem is - it needs an answer to be used as a dupe target
Not that it's the best of ideas to start with though :p
 
DSM
Why? Despite numerous complaints, the dup text continues to say "already has an answer" even though people use it to close unanswered questions when the OP asks the same question (say) twice in an hour.
 
user559633
@JonClements you could just answer "you seemed to have figured it out" and then the comments hanging off your answer could be this media.giphy.com/media/2m1Hi8sdlA7T2/giphy.gif
 
Haven't heard this Keane track in ages...
 
user559633
8:23 PM
his voice is really polished
 
Do you think he'd take it as an insult if I said he looks slightly like David Cameron?
(from the side especially)
 
Just put "no offense, but" at the beginning of your statement, and then he's not allowed to get offended.
2
 
Ahhh... the old "don't take this the wrong way, but..." technique?
 
user559633
lol rap youtube.com/watch?v=8ex38L8xtNI lol people that like crappy 80s pop getting mad youtube.com/watch?v=2zfjPVUC9-M
 
user559633
"nothing said before the word 'but' has ever mattered"
 
8:29 PM
It's not a great question but don't get why it's being downvoted - it's got an attempt and an answerable question... it's a newbie mistake... seems harsh
 
user559633
"i don't mean to sound racist, you're going to think i'm a terrible person, and no offense, but " - someone painfully unaware that he or she is still talking
 
user559633
@JonClements yeah, it's homework help but i don't get why people would down vote.
 
@JonClements Maybe because of this?
 
DSM
"Weeeeeeeeeeeeeeeeeeeeeeeeeee" does seem a little OTT.
 
user559633
"Weeeeeeeeeeeeeeeeeeeeeeeeeee"
 
8:32 PM
@Zero ooops - my bad didn't notice the edit - that'd probably explain it then :)
 
:D
Just noticed, his name is "Wee"
 
user559633
cheers dudes
 
DSM
rhubarb!
 
Thank you for linking to stackoverflow.com/questions/2573135 I did search before posting, but managed to miss the earlier question. My question is less about learning the python language and more about learning general programming concepts (e.g. the duplicate question doesn't even mention revision control). @JonClements do you understand the root of my question? And do you feel this is covered elsewhere? — Andrew 1 min ago
That one's turning into a mess now :)
 
DSM
Oh, grief.
Maybe give a boilerplate "Unfortunately broad questions like that aren't appropriate for SO, which is among the reasons that the target question was closed" and give a link to the FAQ.
And then hope that suffices..
 
8:58 PM
@DSM made a comment to that effect anyway
 
Hi @AlexThornton
 
@vaultah hi
 
@vaultah did you mix up your Alex? :)
 
Uh, no
 
You know, I find myself wanting more and more to learn a less beginner friendly language, as the number of stupid questions on the python tag has to be more than any other.
 
9:06 PM
hi
 
@AlexThornton Android has Python beaten hands down for noob questions which are already answered a million other places, including SO dupes and the official docs.
 
DSM
if Alex > 1: raise TooManyAlexException("oh noes!")
 
Hahaha
 
lol
@Code-Apprentice You know, I suppose I should be more patient with them. It is infuriating from the perspective of an answerer, but as an asker you can see that my first questions were of a similar incompetence, if you look at my profile. :/
 
Right... rbrb in 5mins
@Alex huh?
 
9:11 PM
@AlexThornton mine, too!
 
dv'ing what, huh?
 
@JonClements nevermind, I misunderstood the context of your brb.
 
DSM
Okay, I need to get some work done before I escape for the day.
Rhubarb for all!
 
One of my first Android questions was about a NullPointerException which is really one of the easiest errors to diagnose and fix.
 
Rhubarb, bed time
 
9:17 PM
@Code-Apprentice Excuse my ignorance, but what is this 'rhubarb'? Some sort of meme?
 
It's a python room meme.
 
and back
 
Eh, you were faster
 
I have a horrible feeling that our salad page is far more widely accessed than our wiki/canon pages :)
 
9:19 PM
@Code-Apprentice ty, bookmarked :)
I mean melon
 
9:31 PM
@AlexThornton I see you're speaking it like a native already! :)
 
@JonClements If I'm going to get involved in the community, I've got to learn the ropes!
 
avocado
 
brb lol
 
avocado to you too.
Hang on, that's not right.
melon!
 
9:35 PM
watermelon!
 
10:03 PM
cbg
 
10:04 PM
cbg
 
I'm sort of just following your lead here.
 
And you broke it.
 
I feel I'll be katana'd if I say something other than cbg right now - so I won't
 
We had a perfect cbg storm for a while there. I was hoping more would join in.
Where were vaultah, Zero, and Ffisegydd?
 
@Martijn anyway... shouldn't you have self.__class__ there?
 
10:06 PM
@MartijnPieters cbg
 
Ooops... is SO down?
 
@JonClements No, that was quite deliberate.
@JonClements It is slow, certainly.
 
@JonClements Similar problem this end.
 
__class__ in Python 3 methods gives you the current class in which the method is defined without having to repeat yourself.
 
@Martijn ahh... must have missed that one :p TIL :)
 
Or at least slooowww
 
Appears they're planning maintenance on the 1st... but... whatever - good enough excuse to sign off :)
 
Sucks to be a teenager with scheduled bedtimes. :/ Rhubarb to all!
 
10:46 PM
rhubarb from me all
time to knock off.
 
11:00 PM
Tell you what - Python's JSON library is lovely
Felt the urge to come in here, gush slightly, then leave. Probably feeling a little bit ashamed and damp
 
@IntrepidBrit thanks for that
 
You're welcome
I'm just glad I convinced the client to move away from their proprietary file format
Onto something a bit more standardised so could utilise some half decent libraries
 
That's cool
anyway... puppy nap time... no doubt see you tomorrow :)
 
No doubt. Try not to dream of chasing too many rabbits. You might keel over
 
11:43 PM
for line in file:
This loops on all lines of the file... BUt how to loop from the 3rd line to the last line of file ?
 

« first day (1474 days earlier)      last day (3469 days later) »