« first day (1524 days earlier)      last day (3409 days later) » 
00:00 - 20:0020:00 - 00:00

12:23 AM
@ReutSharabani "tilde" has different meanings across languages
 
the operator.. ?
 
heh, nop
 
in python it's complement
oh so?
 
I mean the word tilde
 
I'm not fluent in English...
ok
what different meanings?
 
12:30 AM
in spanish means another character
 
and in english?
 
no idea, I thought that was your conclusion
 
xD
 
I think in c it's the same as in python
If I remember correctly
there's this puzzle, you know c?
 
12:32 AM
I knew C
long times since last time I used it
 
well, it's not strictly for c programmers
so you have this short program:
int a, b=10;
for (a=0; a<b; a--){ printf("HEY"); }
you need to make it print "HEY" 10 times.
but you can only change one character
There are 3 solutions.
wanted it in one message so you can star it and share with others :D
 
done
 
there are 3 solutions
 
@ReutSharabani why not
 
why not what?
 
12:36 AM
"why not" means "sure"
 
oh lol
 
 
2 hours later…
3:00 AM
The answers on this question are horrible, but they're getting far too many upvotes.
 
DSM
3:25 AM
@user2357112: urf, you're right.
 
 
3 hours later…
5:58 AM
Quite quaint morning cabbage!
 
abc
6:28 AM
Cabbage
 
'cbg
 
 
2 hours later…
8:54 AM
@DSM uhh.. this is embarrassing:
>>> (1/3).as_integer_ratio()
(6004799503160661, 18014398509481984)
 
@Peter why's that?
 
9:10 AM
@JonClements I have no idea..
 
seems a reasonable result to me...
 
:P
probably.. although, pretty useless..
 
@AnttiHaapala do you know why we are so alone?
 
why?
what happened???
xmas time?
:D
 
9:14 AM
nah.. look at that very very small branch at the right bottom corner
 
ah linguistically
 
that's us..
 
well it is just that the uralic languages went around the circle the other way
 
9:35 AM
cbg
 
Cbg
 
abc
cbg
Done
 
abc
> A Russian boy asks his father: "Papa, can I have five roubles please?" The father answers: "Twenty roubles? What do you need fifty roubles for?"
Sigh
 
Heh
 
10:24 AM
cbg
 
 
2 hours later…
12:16 PM
cbg
 
1:22 PM
What on earth was I smoking when I wrote this code?
5
 
1:46 PM
Hi,
i am new in python
i am doing one of python scrapy project
will you help me which IDE is perfect , specially for python debugging
 
@anurag PyCharm or Sublime Text.
 
i am using sublime but there is no integrated debugging
thats why i am thinking about KOMODO
 
Never heard of KOMODO.
Look up pdb though.
 
ok thanks buddy
 
2:22 PM
oh damn, the scrum master is still at the pub.
So we cannot start the new sprint yet.
what are we to do?
 
abc
@MartijnPieters: btw, did you get any response from the site?
 
user1804599
@MartijnPieters lol SPF
 
@abc nope, not a word so far.
@rightføld the team tech lead and the line manager are there too.
 
user1804599
Go there too!
 
we dive-bombed the local pub with 53 people showing up for Christmas lunch (grass-roots event, pre-booked with the pub but way larger than expected).
They coped really well, all things considering.
 
user1804599
2:30 PM
OTOH now you have the time to think up a backup plan for this. :P
 
@rightføld Nah, don't know the people still there all that well and I now get to hack. Also good.
 
Greetings. It's shaping up to be a busy day, so my participation may be spotty.
 
how can i define mutually recursive functions in python?
I have to use lambdas (on the module's scope)?
 
Do you mean mutually recursive like this?
def a():
    if W:
        return b()
    else:
        return X

def b():
    if Y:
        return a()
    else:
        return Z
You don't have to do anything special to make that work.
Python doesn't inspect the interior of a function to confirm that all the names are currently bound to something yet. When you create def a, b doesn't have any meaning, but the interpreter happily parses it anyway.
 
ah that'srigt
forgot about that :)
 
cbg guys
 
2:50 PM
Yo
 
cbg all
 
See previous message
 
Peanut butter and jam toast makes me happy.
 
I'm not sure what makes me happy, because I'm not sure I've ever been happy. It's perceptual doubt similar to the old "how do I know that my concept of red is the same as yours?" problem. What if I have confused happiness for some other lesser emotion? If I pet my dog and feel warm inside, is that happiness, or an increase in my core body temperature due to a mild allergic reaction?
Sure, I laugh and smile and feel motivated to do the things I "like", but who's to say that it's not all learned behavior?
 
3:01 PM
You should try some peanut butter and jam toast then.
What you feel you can re-define as "happiness"
 
Hi everyone. Are there guidelines on whether to approve suggested edits like this one? stackoverflow.com/review/suggested-edits/6521402
 
People born with color blindness may go many years without knowing they have the condition. They think they can distinguish between red and violet, and attribute their poor success rate to "everyone else is like me, but they're overstating their own success rate"
If you were born with chronic anhedonia, how would you tell?
 
@JacobBudin that should not have been approved
 
@JacobBudin I generally never approve edits of code blocks, unless I'm certain the code is being changed to what the original poster intended to write.
 
Rolled it back.
 
3:04 PM
There's no indication that the original poster knew about the "original color" problem stated in the edit reason, so I'd reject that edit.
 
should have been a comment
 
OK, thanks for all your replies. I was ambivalent, because it is ever-so-slightly better and might avoid confusion.
 
54
A: When should I make edits to code?

jmacReviewing Code Edits When in doubt, click 'Skip'. "Learn to love that Skip button." Editing Code in Questions Code in questions should only be edited for formatting and readability. Editing the syntax or correcting typos in code in questions can fix the problem that the person asking the quest...

 
@davidism Arguably, the edit does meet all the criteria listed in the "Editing Code in Answers" section. Tested and it works? Presumably. Doesn't change code conventions? Check -- variable naming style, etc is preserved. Doesn't make the code do something different than what the answer says it does? check -- the answer doesn't say anything about what the code does.
 
/me goes and actually reads the faq
 
3:15 PM
(errata: the answer barely says anything about what the code does. But the described behavior (what little there is), is preserved)
 
> Don't: Change the code logic or functionality
 
I agree that that's important for code in questions, but it seems the requirements are more relaxed for code in answers.
 
/me goes back to reading 101 :[
How do we know the original foreground was white? This just throws code in saying "fixes a problem", but we don't know if it was a problem or if that's a valid fix.
 
True -- this code would break my own console, which has a default fore color of green.
 
Obviously the code looks right and will do something, but the fact that you can change colors multiple times seems to follow directly from the answer anyway
 
3:21 PM
Addendum: Why I say it's "ever so slightly better" is that some people may be under the impression the color "resets" at the conclusion of the print statement. So even if your console is green, at least (presumably) you see why it's now white.
 
a lot of the curses/color libraries have a better way to handle resetting at the end anyway, you use a context manager that stores the original values
 
Incidentally, browsing dir(colorama), I don't see any obvious way to restore the console's original colors.
Oh, I think this is it -- you need to print colorama.Style.RESET_ALL.
 
Maybe I'll leave a comment...
 
it also resets automatically on program exit
according to the docs
 
3:28 PM
Hmm, I see RESET_ALL is already mentioned in other more upvoted answers...
 
can also call deinit() during execution
 
Meh, commented anyway
 
all in all, what we're getting at is, even if the intent was good, the execution was bad
@Ffisegydd wot
 
Minecraft has a story (only visible in the post-end-boss credits), and it's awful.
 
3:31 PM
It's awful on purpose, right? People bugged Notch so much he did that to get back at them.
 
Heads-up: I am about to post a self-answered question: gist.github.com/mjpieters/267390ef8f28bc6ed03a
 
user2555451
cbg all!
 
@davidism, Yeah, it's basically satirical.
 
I've never "won" Minecraft, or read what the "ending" was.
 
I haven't beat the boss because combat in Minecraft is miserable non-fun rubbish, but I did read the ending on the wiki.
 
@MartijnPieters was reading the gist, proofreading-wise it looks fine, that answer is amazing :)
 
That'll be two hats please; self answer and post Q via mobile app
@davidism I meant to make that a blog post for about a year now.
May still do.
 
"Create a code object. Not for the faint of heart." Heh, no kidding. This is some tricky looking stuff.
 
And I posted this after hitting the cap.
 
It's ok, you're getting two more caps for it.
 
3:39 PM
pun five!
 
@davidism LOL
 
Radical wordplay, bro!
 
@davidism You just hat to say that, didn't you.
 
@davidism seconded :-) @Martijn, I haven't forgotten about that bounty, but I had forgotten that you have to double the awarded rep for each extra bounty, so I need 400 over 10K rather than 300. However: that answer deserves more attention than it'll likely get, niche as it is: want me to award 300 to that one instead of waiting to award 400 to the other?
 
@ZeroPiraeus I don't think either needs a reward, really, I did this one for that hats, the other one because I was curious.
(not that I'll ever say no to a bounty, but that is entirely your choice :-))
Man, giving my ninja a hand and cellphone just doesn't look natural..
 
3:47 PM
Okeydoke ... have to wait 48 hours for the closure one anyway.
 
The skin tone doesn't quite match up. Devs, please implement a slider for flesh color variation, tia
 
I like the boat because it looks like you're holding a toy boat when chat doesn't render the different sizes properly.
 
@Martijn side note: with your boat obscuring the 3, you appear to have only 15K on your usercard ;-)
 
@ZeroPiraeus hehe, I need to reinstate the boat then. Like it better than On the Road, which only really works if worn lopsided.
 
The trucker cap fits nicely, but the "USA" label is inaccurate. Other countries have roads too! Devs, please implement a dropdown list for country names on the trucker hat, tia.
 
3:52 PM
I had another idea for Nidaba/analysis last night.
A warning system similar to the Smoke Detector. So for now Nidaba will take features and just use it in ML, but it would be nice to write some analysis bits so that as soon as a certain feature is found, a flag is raised. Say swear words in title/body.
 
@MartijnPieters I wonder if pytest or another mock/test library would be interested in incorporating that answer.
 
4:12 PM
Don't think I've seen Terry Jan Reedy around here before ...
 
I think I've seen him in Tkinter questions before. Horning in on my niche!
 
can I leave a comment on a thread discussing the same question asked twice in different sites (math / so) linking to the SO question for further discussion? or is that a no-no?
 
Seems fine to me.
At best, it helps readers better understand the question, if the OP didn't include identical details in both posts.
And facilitating understanding is what we're all about :-)
 
The OP was fine, it's just that I'm not sure my answer is correct and need math people to confirm. Math isn't my strong side.
 
There really ought to be a dupe target for this, but the proposed one ain't it, and I can't find one either.
 
4:19 PM
I agree that the proposed dupe isn't a good fit.
 
Actually it's a very clear statement of the question ... someone ought to go to town on a canonical answer.
 
@davidism other answers of mine have been used in libraries before.
Generally, people ask nicely on the post if I'm okay with that.
 
We should probably be doing this more, but if you find a dupe, create an entry in the canon!
 
It would be nice if RABBIT could have a command for it maybe?
 
4:23 PM
@ReutSharabani The first of those isn't a dupe for the same reason the proposed one isn't. The other one doesn't feel like a great fit either, really.
 
Actually no that wouldn't work.
 
@ZeroPiraeus , it's kinda hard googling it cause you need 'something' and 'not something', which I don't know how to google :D
 
Or really, if you come across something that will be a dupe target, add that too.
 
Incidentally, I'm preemptively opposed to any RABBIT features that would cause a prolonged conversation between the bot and one user. Ex. a "Hangman" or "20 questions" game. I worry that this would drown out conversation between actual people.
 
@ReutSharabani Yeah, I had similar problems. Hard to believe there isn't a dupe out there somewhere for such a common beginner-at-python-oop question, but damned if I can find it.
 
4:26 PM
@Kevin A fair point.
 
well, we can always add the bot to the sandbox and enable extra features there
 
In the sandbox, anything goes, sure :-)
 
We definitely want a gong though, when we get a "room close"
 
The gong is the right kind of noise.
 
Agreed.
 
4:34 PM
@Ffisegydd I'd prefer "Another One Bites the Dust", by Queen, in its entirety.
... overlapping if we get a few in quick succession.
 
@ZeroPiraeus and re-queue it for every new room-closed post, right?
 
I'll never say no to Queen... Though maybe "We are the Champions"?
 
Lets see if we can queue it up to last into the new year!
 
We should set up some fireworks to go off whenever we room-close something.
 
The Something Awful "Cavern of Cobol" chatroom has a bot which occasionally echoes messages from other people, except one noun in the sentence is replaced with the word "butt". Can we have that feature?
I think buttbot is open source, so the algorithm should be on Github somewhere, probably.
 
4:35 PM
The Something Awful "Cavern of Cobol" chatroom has a bot which occasionally echoes messages from other people, except one noun in the sentence is replaced with the word "butt". Can we have that butt?
 
See? Comedy GOLD.
 
The Python thread on SA is pretty awful.
Butt yes, that is butt gold.
Oh god, maybe I've gone too far there.
 
SA's coding subforum has one advantage over us: the ten dollar entry fee prevents an endless influx of help vampires.
 
Oh god, maybe I've gone too butt there.
 
Oh butt, maybutt butt've gone too butt there.
 
4:38 PM
chiquito.co.uk for dinner. om nom nom nom butt.
 
HATS
BUTTS
 
/me scribbles "butt hats" in my "million dollar idea" notebook
 
Is that a hat for butts or a butt shaped hat?
 
That's an implementation-specific detail. I'm just the idea guy.
Or rather, the "steal ideas from davidism" guy.
 
@Kevin why do I read steal butts from davidism there now?
 
4:55 PM
Uh oh, I think my butt proposal has mutated into a Pontypool style memetic virus.
I suggest all readers here to isolate themselves, and await further instructions from the CDC.
 
cbg all!
 
Why would you use semicolon line endings in Python code?! — davidism 15 secs ago
> Why would you use semicolon line butts in Python code?!
 
@davidism I've done this in the past when I was writing an entire file in a single line. It was the most hacky code ever, and my soul hurt for it
 
That's how I roll — David Reeve 2 mins ago
 
Can't argue with that.
 
5:05 PM
The question's fine, but can you replace the arrows with hand-drawn red lines? — davidism 10 secs ago
 
We can tell, by the spelling, how important that post is to you.
bah, humbug.
I'm not even inclined to edit that post into something readable now..
 
even the username is shouting
 
Closed.
 
So I've got a code in my bin/ folder and then a .cfg file in ../cfg. Is it safe to do this?
config = configparser.ConfigParser()
config.read ("..\\cfg\\config.cfg")
Python3 btw
 
Seems like a language barrier problem. "Hello Dear To Loginand singup System" isn't something a native would write, even if they had poor grammar.
"dear" is exclusively used as the first word of a formal letter, or as a term of endearment from grandmas.
 
5:51 PM
@Befall you can use / as opposed to \\ to avoid escaping btw.
But other than that I think that's fine.
 
Oh cool, thanks @ff
No autocomplete, damnit chat.
Okay, cool. Thanks!
 
Assuming you will always have your files together.
 
Yup, all relative to the same parent directory.
 
chat has auto-complete...
 
DSM
Lunch-in-an-hour cabbage for all!
 
6:08 PM
5 more JSON answer votes to gold.
Not sure if the Red Baron or the 30 Minutes or Less hats are within my reach at all, certainly not on Stack Overflow at least.
 
6:38 PM
@MartijnPieters Perhaps you should look for a network site to join where you have no expertise and some amount of interest?
Or, judging by your network profile, you've already joined quite a few. Why not ask?
I think the easiest route to the pizza hat is probably via MSE.
Hit "hot meta posts" during the work day with something incredibly opinionated.
 
7:20 PM
The "so IMP" guy has reposted the same question.
 
anyone here have any experience with applescript?
 
Not me.
Hmm, not crazy about that dupe close there, since the original question didn't have an answer.
IMO, dupes of unclear unanswered questions, should themselves be closed as unclear
 
DSM
I've complained in the past that the dup-close reason doesn't apply when a poster asks the same question twice, and think they should drop the "and already has an answer".
♫ I talk to the trees ♫ but they don't listen to me ♫
 
Reminds me of the Twilight Zone episode where the scienceman invents a box which can hear the thoughts of people in the surrounding area, and one day it starts playing horrible screams, and the guy runs around looking for murder victims, and he discovers that the screams occur whenever a tree is cut down.
But that's kind of the opposite. The trees talk to us, but we don't listen to them.
I'm getting more downvotes for answers recently... Is this discrimination against 20k+ users? Am I being held to a higher standard?
 
user2555451
7:38 PM
I find people get annoyed when high rep users answer easy questions. I guess they expect us to leave them for the lower rep people.
 
I think there was another meta post recently calling for rewarding duplicate question finders and punishing duplicate answers.
 
Leave easy ones to lower rep people? No chance, I'm pulling up the ladder now that I'm done climbing. No easy questions for anyone but me.
 
Exactly, it's why I close everything I can't answer on my tags. ;)
 
user2555451
 
24
Q: Reward for close voters finding appropriate duplicates?

πάντα ῥεῖI'd like to discuss, if it's considerable worth it, awarding users for finding good duplicates for a question that is upvoted though being marked as a duplicate. As a premise: Duplicate questions can be very helpful for future research, and I have upvoted several of those, to improve a dense net...

and the 5 other discussions Pekka posted in the comments.
This specific one doesn't talk about punishment, but the others do.
There's also the problem that closed questions won't get automatically culled if they have an accepted/upvoted answer.
 
7:49 PM
I wonder if this has anything to do with the amortized memory allocation that lists use.
Like, the 76 byte ones are smaller because they have less scratch space allocated than the 104 byte ones.
 
user2555451
That might be the case. Python could make a more accurate allocation guess with literals in the list.
 
DSM
I'd say "differences" rather than "inconsistencies"-- no one ever promised that the memory used would be the same, and so there's no real reason to be surprised by minor differences anyway.
 
user559633
anyone have a good gif that suggests "feeding frenzy?"
 
user559633
 
I added my guess as a comment. If someone could figure out why some lists have more allocated memory, that would be quite answer-worthy, I think.
 
7:56 PM

Sorry to butt in

3 hours ago, 20 minutes total – 20 messages, 4 users, 1 star

Bookmarked 8 secs ago by davidism

 
user559633
I'd guess it has to do with pre-allocation for inserts
 
user2555451
If anything, this question proves why you should always use [:] over list() to make a copy. I always said it was shorter, but now I have a technical reason!
 
:-)
 
user559633
list is just making your list a linked list, [:] is copying elements
 
Linked lists remind me of my old C++ days. Stop triggering me!!!
 
user559633
7:57 PM
Shit, I wish I answered that question sooner, I knew the answer and that's a fun one to have answered:/
 
user559633
#triggered
 
user559633
man, that could have been meeee
 
Maybe next time :-)
 
00:00 - 20:0020:00 - 00:00

« first day (1524 days earlier)      last day (3409 days later) »