« first day (1996 days earlier)      last day (2968 days later) » 

12:00 AM
@Vihan I don't think anything has a self in python
or maybe I'm misunderstanding you
 
@AndrasDeak cbg
 
hey
 
what's up
 
I've actually been going to bed for an hour:P
(as always:D)
 
I've been sleeping all day :D
 
12:02 AM
I just recognized Downgoat from PPCG;)
 
as always
who's that?
 
Vihan, a few messages above
PPCG is codegolf.stackexchange.com, full name Programming Puzzles and Code Golf (hence PPCG)
 
Ah yeah, his picture
 
Downgoat is a well-known user there
 
13k6
rep
not bad
 
12:06 AM
@AndrasDeak oh okay, will read
 
@Vihan but depending on what you want to do, you can use an input variable with a mutable type
that way it will be initialized only once, and changes made to the variable will persist through calls to the function
 
okay
 
I mean input variable with a mutable type as default value...
it's a bit late here;)
so something like
 
The reason I'm asking is I'm making a language and I don't know if functions should be treated like classes
 
    def foo(inval,allvals=[]):
        print(inval)
        print(allvals)

        allvals+=[inval]
my markdown broke a bit...nevermind:P
 
12:11 AM
okay, I think I got it
 
good night people.. see you tomorrow :)
 
@Vihan I'm afraid I'm too noobish for that in python:)
 
@MarkoMackic night!
 
but a bunch of gurus come here who can surely help
I'm off too, good night
 
@AndrasDeak night, to you too!
 
12:13 AM
no, functions can be treated as single functions (as opposed to methods) when not in classes - if that is what your asking
 
DSM
12:35 AM
It's not very generous of me, but I have to admit when I read question #3 here my first thought is that a bigger problem is people who don't quite know what they're doing but (and therefore?) are quick to assume the mistake isn't theirs.
 
"I know that floating point precision is a thing. So how can I avoid it?"
argh
 
ugh...that sounds familiar....what I was dealing with, with that unittest question...
 
I should've gone to bed 2 hours ago:D
 
I think that is very generous, it is far kinder than my first thought
 
oh that answer though
 
12:38 AM
first two answers will be to multiply/divide by 100 or use Fraction/Decimal libraries I bet
 
I'm ending it. It's getting out of hand.
 
362
Q: Exit strategies for "chameleon questions"

AarobotI'm not sure if there's already an existing term for this, so I'm inventing my own. (tl;dr: I call them "chameleon questions" because they change every time you submit or edit an answer. If you're already intimately familiar with the phenomenon, please skip past the first set of bullet points t...

 
Thanks
I have such a headache.
 
I'm finally going to sleep now, before I say something flaggable to the floating point answerer
good night
 
haha
goodnight
 
1:12 AM
wait, that "guy" was using PyCharm and not using the debugger?...that's like half the benefit of PyCharm
 
I KNOW!!!!
I'm yelling in agreement with you
:)
 
LOUD NOISES!
 
I'm about to post an answer and I think I'm right. Would you be up to giving me a review on whether I'm right?
Or I can explain my answer here before I post it
 
to that same question?
 
no
different one
 
1:21 AM
whichever you prefer I'm just doing an outline for a presentation right now so I'm not busy
more correctly I'm stuck and keep playing with graphs instead of making editing decisions
 
@JGreenwell really appreciate it! stackoverflow.com/a/36380626/1832539
Sounds like you need a 2 minute break from not doing what you're doing... :P Maybe that break will inspire you to figure your problem out!!!! :P
 
that is a long line of output just to see 'text' at the end :P. Seriously, it is fine and barring some other error (or a crazy OP) this should be a good answer
 
Yeah. I think I'm going to format it. I was thinking that too. Thanks for taking a look at it. I really do appreciate it.
 
<-- brain turning into gelatin
 
didn't even get a chance to read it :)
 
1:30 AM
break time, rbrb for now all
 
rbrb!
 
I just got bitten by accidentally using tabs in a source file that's space-indented >_< I Feel like a noob :-/
@idjaw This is probably applicable here: meta.stackoverflow.com/a/318520/660921
 
1:46 AM
@Carpetsmoker Thanks for sharing. Glad there is lots of info on this. In the end, OP created a new question and thanked me and accepted the answer. Balance restored.
 
@idjaw Be lucky that you can escape. I did some freelance work for a customer yesterday and the guy is as clueless as a blind dog abandoned in the forest ...
 
2:39 AM
Cabbage
@Ffisegydd You sure about that [x[0]*random.randint(1,x[1]) for x in dice], Fizzy? :)
unclear stackoverflow.com/questions/36375617/… Unless you can figure out what the yam the OP is on about. :)
 
2:58 AM
If Kevin or some other Tkinter person feels like explaining the misconceptions in this self-answer, please feel free. I'd do it but I've got to go.
Rhubarb
 
 
2 hours later…
4:56 AM
cbg
 
hi
 
I recently switched from python to c
I am a newbie
things got worse when i started to learn gui in python
so thought of learning all over again
from c
i hope i m not going backwards
 
why'd you "switch" from Python to C
 
i couldnt build a timer in python
:(
 
5:10 AM
C wouldn't make it easier.
 
yeah but i thought it doesnt hide things
 
if one cannot do something in Python then I am pretty sure one cannot do that in C either...
 
hmm yeah thats true
how should i solve small problems in python
i think i jumped too fast into gui in python without really understanding the oop
 
perhaps
 
so i guess i should stick with python?
and learn the data structures and algorithms first?
 
5:13 AM
yes
and then probably you realize that you do not need C
 
i thought its the foundation of most languages
 
not really
yes but also no
 
what do you mean
 
C is the language used to implement quite many things, yes,
including CPython
 
yeah
i wanted to solve one problem in c
its done easily in python
but in c it says neither array nor pointer error
 
 
2 hours later…
6:56 AM
morning cbg
 
7:30 AM
@PM2Ring I actually rewrote it all but was too slow to edit D:
 
8:04 AM
cbg
@AnttiHaapala Sorry, but I disagree with you. I was not asking for complete diassemble code, I wrote code to parse the ELF, I just need hint/pointer to decode the above formatted opcode to mnemonics. — BSalunke 7 mins ago
 
8:25 AM
anyone good with postgres?
 
@LemusThelroy if your question is Python-related, just ask it
 
It doesn't really count as python, it's more to do with my db that my python code is calling
can't find a postgres room though
 
8:58 AM
@LemusThelroy well, room rules recommend that you shouldn't ask whether there are "any experts present"
anw, fwiw I am pretty good with postgres, so if you can make it quick I might be able to help you.
 
9:50 AM
Can an RO set a room event for the proposed room meeting date in the starboard - so that we can link the event and get an idea of numbers that way...?
 
No. No we can't.
We won't bow down to our mod dictators anymore!
 
I was going to do it, but I get Because you are a moderator there, an event that you schedule in this room may be advertised on and tweeted by the site's Twitter account.
 
Ffisegydd has added an event to this room's schedule.
 
120 minutes? Is the last 60-80 for drinks at the SO Bar? :p
 
Cabbage
@Ffisegydd Fair enough.
 
9:54 AM
@Jon they always last longer than planned.
Takes 15 minutes just to herd all the cats into position.
 
True dat... and I suppose there's been a few things "the cats" will want to raise :)
 
10:26 AM
Akin if you get solution then mark the answer. thanks. — Anant 9 mins ago
Yhhh
@Anant do note that the OP does not even have the required reputation to upvote! — Antti Haapala 10 secs ago
 
lol
 
anw, cv that question, I've got it bookmarked so that I can delv it right away :D
 
already did ;)
 
hmm I should have linked the comment that said "do not forget to upvote", it seems that Anant removed it already :D
 
10:42 AM
bbiab
 
about 90 % of the triage questions are unsalvageable :d
If it looks that it might be salvageable I usually skip it...
I also do not like that the triage asks me to upvote a question that just looks ok
 
11:02 AM
Moderat released another great album about a week ago
 
unclear stackoverflow.com/questions/36384608/… I don t think we need to wait 10 min for this one. :-)
 
11:19 AM
There is a python reference in this song
Remarkable power, The Python is clear in Syntax
 
11:32 AM
who is anonymous
 
Cabbage!
 
:D
listening to the rap song
 
@AnttiHaapala But that’s what we’re voting on, right? We aim to get “okay” questions and answers…!
Who needs quality?!
 
yeah...
 
Cabbage! I added yet another draft to sopython.com: sopython.com/canon/99/nonetype-object-has-no-attribute-whatever
I realize now that the linked question is the one I was looking for before ... only it's a canonical for a different question than I remembered
is there a procedure for moving these out of draft? Like can I just uncheck the "draft" box after a few days if there are no comments or edits?
also eerily related, another draft by somebody else: sopython.com/canon/96/…
can I uncheck the draft on that one too?
 
11:47 AM
I think unless you plan to make major changes to it (i.e. you are still actively “working” on it), you don’t need to make them a draft at all. So imo, you can undraft them both.
The draft state is just a way to show incomplete work to others. But those canons look fine to me. And even without a draft, we can always expand them later if we feel the need for it :)
 
@poke Poke thanks, that was my thinking, too; just not sure if there are procedures or conventions I was not aware of
still working on the new one but I'll let it sit for a couple of days when I'm done with it
 
I don’t think we have actual procedures other than “just do it” for the canon ;)
 
good good; thanks again
 
I also don’t think anyone is actively reviewing them, so just ask for input when you’re done, but no need to wait some arbitrary time :)
And thank you for helping out :)
 
12:05 PM
@tripleee Thanks!
The lowest scoring answer there is a bit odd... but I guess it's better than the deleted ones.
 
@PM2Ring what the?! Wrong syntax and that has nothing to do with the question? I’m going to downvote that.
 
I was so amazed that I forgot to downvote it. :-)
 
haha
 
12:22 PM
My bet is that ^^ is a XY problem... or a XYWTF problem.
 
yeah
No. I am trying to to develop a keylogger application. I wrote a class for this purpose. I didn't use WinForms's internal events. — user1067742 1 min ago
“I am trying to develop a keylogger application” – Way to make me want to help you.
 
> This week, he appeared in a Donkey Kong homage game produced by a fan on the site.
I don’t think SO staff counts as “fans” but okay
 
It's only the BBC, can't expect them to fact check things.
They're too busy taking our bloody TV licences! (Just kidding, I don't have a TV licence (but I also don't watch live TV so don't need one (I like brackets)))
 
Sometimes, I wish I could get a bbc license… >_>
 
12:34 PM
I think SO staff are permitted to be Jon Skeet fans. :-)
 
You can't watch BBC iPlayer outside of the UK, right?
 
yeah
 
You don't even need a licence when watching it in the UK, as long as you're not watching in real time.
Though I saw an article that they're trying to abolish that loop hole.
 
And you can always click the “I have a license” button
 
I didn't even realise there was an "I have a licence" button
 
12:38 PM
@poke Do you get much English language stuff on German TV / radio?
 
Pretty much nothing
Germany is one of the few countries that dub everything, and are also very very good at it. So we have high quality things, all in German.
 
Ah, ok.
We have a semi-government network, SBS, that has lots of non-English content, with high quality subtitles.
I.e., the translations are said to be pretty good, and they're in bright yellow so they're pretty easy to read.
Rb rb
 
I hate those commercial yellow subtitles..
 
I guess they can be annoying, but at least they re legible on most backgrounds
 
12:54 PM
I'd rather have bad subtitles than bad dubs.
 
Why
 
Because
 
I guess if dubs are bad you cant really tell
And then you may get a different story
 
Well I'm assuming that the people doing the translation aren't going out of their way to be deceitful.
Given that, I find bad subtitles less distracting than bad dubs.
Bad dubs are just horrific.
 
Reading subtitles are like a voice in your head that you can change, but, dubs force you to listen to one voice
 
1:00 PM
Yes but we're talking about bad dubs and bad subtitles.
And bad dubs are horrible, I find them much more distracting than bad subtitles.
 
I feel ya
 
that's why I never watch anything dubbed
 
Like i get you mean
 
@Ffisegydd Agreed. Bad dubs are distracting and annoying. Bad subtitles are just making it harder to comprehend. But as I said, Germany is really good at dubbing, the dubs are really high quality.
 
1:05 PM
It would be a cool project to make a auto-subtitle program
 
Yeah, and if dubs are done well then they're better than subtitles most of the time.
 
@falconuser Like YouTube? :P
 
Exactly
You could go one step forward and make a auto-dub program
 
Terrible idea, but okay
 
More proof of concept
It would be terrible, though
 
1:07 PM
Well, Skype is now able to automatically translate spoken words
but that wouldn’t make movies enjoyable :P
anyway, rbrb for a bit
 
I didn't know that
So.. Anyone want to bring up a topic
 
Doing subtitles or dubs is much harder than normal translation. You really need to understand what the words mean, and the flow of the dialogue in the context of the story. Current AI isn't good enough to do that well - it's hard enough for smart humans to do it.
 
1:23 PM
for link in soup.findAll('a'):
    if link.has_attr('href'):
        if "polldaddy" in link['href'].lower():
           for l in link['href'].split("/"):
                if l.isdigit():
                    print(l)
                    poll_num = l
I get a feeling this code could be a lot better
 
cbg guys!
 
cbg idjaw
 
Hi, idjaw.
@Wally Probably. How many elements of a link path are numbers?
 
cbg again
 
Saw this opening act Friday night and I never heard her before. Fell in love with her music. Thought I'd share.
 
1:34 PM
Hi, Antti. How's your belly doing?
 
belly's been pretty ok for many days
 
Excellent
 
... but I think I've got bronchitis... :d
it is actually amazing how fast one can possibly heal from endoscopic surgery
 
isn't it impressive that they can even do that?
 
well I certainly couldn't :d
way too clumsy
they force-fed me painkillers, I wouldn't actually had needed any :d
 
1:43 PM
I opted for local anestesia for my ankle surgery...and I was actually trying to see what they were doing, but they kept telling me to stop looking. Apparently they were afraid of me freaking out based on how my ankle would look like
 
hahah
I broke my elbow 3 years ago. That wasn't fun at all afterwards.
 
@idjaw Nice! Her harp is very similar in design to mine, only hers is twice the size. And she plays a lot better than me. :-)
 
I was a month on sick leave but I needed it
 
@AnttiHaapala same here. I had to take a month off work being on the couch, and then I was in a boot for a couple of months followed by 6 months of physio, and 6 months of physical activity required by physio..
@PM2Ring You play the harp? That's awesome! But yeah...I was so impressed with her show. I got home and just kept listening to her album
 
@PM2Ring The links are kinda like this polldaddy.com/poll/9371663
 
I mess around on the harp. :-) It's heaps harder than guitar, but I really love the sound and the mood it can create.
 
I'm overly impressed with what I'm listening to. I need to find more of this.
I saw how she was playing, and she seemed to have been tuning while playing
 
@vaultah hmm I duped it to that :D
 
seems like a complicated instrument to master
 
@vaultah I wonder if I should reopen and answer
 
1:55 PM
@vaultah I find it funny that what you wrote was the question in its entirety
 
Here's some awesome traditional harp: youtube.com/watch?v=obo3NRjaZqc
@idjaw Some diatonic harps have quick-tuning levers on some strings so you can quickly modulate between keys.
 
c for c in ().__class__.__base__.__subclasses__() if c.__name__.endswith('BuiltinImporter')][0].load_module('sys').modules['os'].listdi‌​r()
 
It's kinda sad that the OP couldn't find a way to do that... I've shown him the way to access the builtins module... :/
 
Eg, if you sharpen all the Fs, you go from C to G
 
@PM2Ring that's interesting. It seems like a very soothing instrument to play
 
2:06 PM
how about fingers :D
 
It is, but it's also a bit frustrating when you can play guitar a lot better. And it's tricky to see what you're doing without going cross-eyed. :-)
 
so don't see/look.
 
I'm looking forward to putting more work in to my basement to start getting more instruments
Would love to have an electric drum kit.
 
I'd want to buy all the small and annoying instruments. Ukulele, melodica, harmonica.
 
@AnttiHaapala Sure, but that's hard when you're still learning.
 
2:12 PM
I love the harmonica. I just bought a few a few months ago
 
@PM2Ring My dad practises woodworking as a hobby and once made a harp. No particular reason, just because.
It was a Celtic harp
 
melodica is one of those instruments that should have been uninvented
 
I played a bit of blues harp today. It was fun, even though there wasn't much of an audience: The pub's bistro was closed.
 
melodica is the great balancer of instruments. no matter how good you are, it still sounds bad :d
 
TIL what a melodica is
 
2:22 PM
2 mins ago, by Ffisegydd
TIL what a melodica is
 
@Ffisegydd Cool! FWIW, I bought my Celtic harpfrom an amateur instrument maker. It was his first harp.
 
@MattDMo thanks for the call out. Removed the answer.
 
I think his next instrument is going to be a flute of some kind.
 
Oh, I didn't mean for you to do that, just specify that the behavior you were describing was version-specific.
 
Melodica isn't great but it's ok for busking, in combination with guitar.
 
2:26 PM
@MattDMo It's OK. The tag was Python 2 anyway. So it would not have served a purpose having a long answer like that that was Python 3 centric. I could change the entire answer to be Python3 based. But someone else seems to have answered. It's all good! :) I'd rather someone tell me I'm off than have it rot there being misleading.
 
It was actually originally tagged 2.x and 3.x - I removed the 3 tag :)
 
haha oh!
 
There's a pending edit that should be rejected, I think stackoverflow.com/review/suggested-edits/11876050
 
TIL that Go has &^= operator
 
What's it meant to do?
 
2:31 PM
&^ bit clear (AND NOT) integers
Says the language spec
 
speaking of different languages. I was slapped in the face on Friday when I realized how rusty my JavaScript has become ever since I dove in to my most recent role (which is very backend)
 
@Ffisegydd it does what all sane programming languages do with &= ~
seems that Go needed a different operator for that
 
Not sure why Go doesn't have a ~ operator...
 
after yesterday's frustrating back and forth with a different OP, getting a comment like this is nice
 
Second hit for "Why doesn't go have a NOT operator" : "Why God Allows Suffering" ... hmm ...
 
2:40 PM
@Wally Sorry, I didn't mean to ignore you. You don t need an inner loop. Use rsplit with a maxsplit arg. And you can join two of your if statements into one by using and. I'd write some code but I'm on a tablet.
 
cbg
 
cbg @JGreenwell
 
heh...every time I start up a notebook I wonder why my code mysteriously doesn't work anymore.......then I remember to hit "Run ALL"
 
@Carpetsmoker it "does".
there's binary and unary ^
but I've reached the conclusion that Golang is sh*t.
 
@AnttiHaapala Oh, that's in a different table :-/
 
2:46 PM
Who was it that was using Golang a lot here?
Adam Smith I think
I haven't seen him in a long time
 
Incidentally, I've been learning Go in the last week ... It probably won't be my favourite language, but I'm not sure if it's shit either...
 
@AnttiHaapala are you using Go for anything in particular, or just educating yourself?
 
anyway I still do not quite understand about a language that has nothing kewl, but has a "bit clear operator"
@idjaw no, I've not even tried it.
 
@AnttiHaapala Every language needs some strange idiosyncratic feature or design decision.
 
2:59 PM
Hello. Off-topic question if I may: is GitHub also made to save school homework like projects?
 

« first day (1996 days earlier)      last day (2968 days later) »