« first day (2594 days earlier)      last day (2348 days later) » 
00:00 - 17:0017:00 - 00:00

wim
12:23 AM
>>> class OrderedDefaultDict(OrderedDict, defaultdict):
...     pass
...
TypeError: multiple bases have instance lay-out conflict
sadbadger.png
 
Rhubarb all
 
 
4 hours later…
4:18 AM
Is there a way in fillna() to just put blank instead of Nan
I am doing a df.to_html() and don't want NaN..just blank tables are needed
 
4:32 AM
Hey, im having trouble inserting non-unique rows into a database in SQLAlchemy.

I need to insert rows only if the key hasnt been used before.
 
 
2 hours later…
6:37 AM
cbg
 
Early cbg
 
nono, late cbg
 
Hi, I installed python 2.7.13 using pyenv
 
Yay!
 
but not able to import pyqt4
 
6:45 AM
Why not 3 :(
@piRSquared TBH it's hard to tell the difference here...
 
pyqt4 works when using the system python
can someone please help?
 
Did you activate the virtual env or pyenv and install pyqt4 to that environment?
 
No, I installed pyqt4 using apt-get - sudo apt-get install python-qt4
Is it possible to install pyqt4 using pip?
 
I guess. Might need Qt dev headers etc., but give it a try.
 
pip install pyqt4
No matching distribution found for pyqt4
 
6:55 AM
It'd seem to be a bit more involved: pyqt.sourceforge.net/Docs/PyQt4/installation.html
 
Ohk! will try it out :)
Thanks!
 
7:13 AM
@piRSquared That's a wee bit more south.
 
Yes, squarely in the territory of unambiguous night and day
@MartijnPieters question regarding your answer stackoverflow.com/a/13562327/2336654 Why do you say {# #} isn't intended to be for comments and only intended to turn off parts of the template?
it would appear to me that it effectively acts as a means to make comments.
 
7:52 AM
@piRSquared not sure anymore, clearly the documentation agrees with you. :-)
@piRSquared: ah, because the OP expected it to work inside Jinja syntax.
 
Ok, thank you. I can put my mind at ease now (-:
 
So {% ... {# ... #} ... %}. I'll adjust the wording.
@piRSquared: also, someone in the comments had the exact same question, and I had the exact same answer then too.
 
Ha! I should have read the comments.
 
cbg
 
cbg
 
8:08 AM
Cbg
 
8:54 AM
cbg
 
cBg
 
CBG... is that all of them?
 
9:11 AM
hello guys i have a simple question
 
when i use get method of dictionary i get the value of it data.get(fieldname, "n/a")
how can i get with get method the keys of dicts?
 
not straightforwardly. You can use a sentinel value as a replacement and look for that
 
@piRSquared Not quite.
>>> [*map(''.join,product(*zip('cbg','CBG')))]
['cbg', 'cbG', 'cBg', 'cBG', 'Cbg', 'CbG', 'CBg', 'CBG']
 
sentinel = object()
val = data.get(fieldname,sentinel)
if val is sentinel: # note the `is`
    pass # here the key `fieldname` is missing
but what you really want is fieldname in data to check one key, and for fieldname in data to loop over keys
 
9:15 AM
@piRSquared [''.join(cbg) for cbg in product('cC', 'bG', 'gG')].
 
@PM2Ring yam! I was just trying to use your combinations code to do the same thing... but product and zip is so much prettier!
@MartijnPieters and that!
 
Martijn unrolled the zip loop ;)
 
thank you @AndrasDeak
 
no problem
 
choice(list(map(''.join,product(*zip('cbg','CBG')))))
I shall run that prior to every CbG from hence forth
 
9:19 AM
one more? [c+b+g for c in 'cC' for b in 'bB' for g in 'gG']
 
No, it's the same number of them (-:
 
@PM2Ring can you make us a cellular automaton that starts with a shape that looks like cbg, and constantly spawns more cbgs?
 
@RobertGrant Not exactly, but I can easily make a Life pattern that constantly spawns a 'cbg' pattern made of spaceships. But I'll do it a bit late, when I've finished eating.
@AndrasDeak He did, but there's a typo.
 
Woohoo
 
@PM2Ring that's why you debug with -O0
 
9:29 AM
The problem with questions about parsing json is that they my eyes bleed.
Note to self: ctrl+k is not the same in PyCharm as it is in Python Chat.
 
Monday cbg everyone.
Wait. Damn these long weekends.
 
>>> [''.join([f(c)for f,c, in zip(({'0':str,'1':str.upper}[u]for u in f'{i:03b}'),'cbg')])for i in range(8)]
['cbg', 'cbG', 'cBg', 'cBG', 'Cbg', 'CbG', 'CBg', 'CBG']
 
@Withnail I'll be happy to trade my short single day weekend for your long weekends :D
 
@PM2Ring I have no idea what the f'{}' constructs do. and neither has my compiler
    [''.join([f(c)for f,c, in zip(({'0':str,'1':str.upper}[u]for u in f'{i:03b}'),'cbg')])for i in range(8)]
                                                                               ^
SyntaxError: invalid syntax
 
Python 3.6
 
9:40 AM
@piRSquared I don't mind them, as long as the OP posts a decent sample of the JSON they're trying to pass, not some invalid excerpt that I have to spend 5 minutes fixing up.
 
Yes, that too!
 
@ArneRecknagel f'{i:03b}' is equivalent to '{:03b}'.format(i), but smaller & much faster.
 
@PM2Ring and btw, that's ridiculous. Though, you get tons of nerd cred!
 
is that something to seriously look into or .. something like lambda functions?
 
9:44 AM
@ArneRecknagel Here's a comparison from the other day:
Nov 17 at 15:22, by piRSquared
%timeit'Imma {name} and imma {age}'.format(name=name, age=age)
%timeit f"Imma {name} and imma {age}"
%timeit fmt('Cool Cat', 3)

196 ns ± 2.6 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)
14.2 ns ± 0.332 ns per loop (mean ± std. dev. of 7 runs, 100000000 loops each)
265 ns ± 15.2 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
 
(lambda s: [''.join([f(c)for f,c, in zip(({'0':str.lower,'1':str.upper}[u]for u in f'{i:03b}'), s)])for i in range(2 ** len(s))])('CbG')
f'{i:03b}' That tomato 3 still needs to be parameterized though
 
@piRSquared [mfw](https://f4.bcbits.com/img/0005600995_10.jpg)
I award 3.7 n€rdCr€d though
on an unrelated note, how do i do links in this chat?
 
@piRSquared Like this, using a nested format spec:
(lambda s: [''.join([f(c)for f,c, in zip(({'0':str.lower,'1':str.upper}[u]for u in f'{i:0{len(s)}b}'), s)])for i in range(1<<len(s))])('CbG')
 
@AshishNitinPatil No deal.
 
9:54 AM
I'm just off on my estimates of when things will be done
Uh... Wednesday?
Oh, wait, that's today, no, no. backtracks
 
Nested format specs are also valid in the .format method and format function. They can only be nested one level deep, but it's hard to think of a situation where you'd need more than that.
 
=0 I had no idea there is a bitshift operator in python. I am learning so much here!
 
@PM2Ring ahh yes! That is nice.
Nested format specs, that's "Next Level" formatting right there.
 
@ArneRecknagel I normally only use it in contexts where I'm doing other bitwise stuff, but it is faster than **.
 
Ok, I've finally made a joke I'm actually embarrassed of. But I shall leave it for posterity.
 
10:02 AM
@poke your closehammer is misbehaving
it is now creating a hammer of width: 100 %
@poke firefox 57
 
10:18 AM
Cabbage
 
Cbg poke
 
@Antti Did you get updated to Greasemonkey 4 by any chance?
 
idk bout that :F
I've just run apt-get upgrade and my firefox was bumped to 57
 
If you click the icon in the toolbar, does the menu look like a simple dropdown with your scripts? :P
 
I didn't specifically touch anything else, it just started now
yes it does
 
10:19 AM
Then you’re on GM 4. Congratulations.
Unfortunately, GM4 is not backwards compatible to earlier versions, so I had to update my script.
 
so what does it affect?
 
And unfortunately, Firefox has a bug in FF 57 that does not allow you to install scripts from GitHub!
So you need to follow the following workaround:
 
graah
 
1. Go to about:config and set security.csp.enable to false.
2. Update the script by visiting gist.githubusercontent.com/poke/…
3. Go to about:config and set security.csp.enable back to true
Alternative solution: Uninstall Greasemonkey and use a different script manager instead which will be backwards compatible…
It’s really saddening, that Greasemonkey—who established the user script API—is the only plugin on the market that is not following that API.
 
thanks works now
:D
they want to be the microsoft of the user scripts!
 
10:26 AM
I just installed tampermonkey, since GM4 still seemed very broken/incomplete
 
github.com/greasemonkey/greasemonkey/issues/2725 – I’ve opened an issue to make the migration easier, feel free to thumbs-up it.
 
@AnttiHaapala: UUID() is pretty specific and peculiar about its arguments.
What we are proposing is then to allow another UUID() instance to be accepted as a hex argument.
 
@ThiefMaster Yeah, that’s a fair move. I understand what GM is attempting to do, cleaning up the API and stuff, but it’s really not the best timing for that.
And obviously, they want to do it differently to all those other extensions that copied GM back then, in a way that is more modern to the current developments of web extensions. Which is also a good move but also comes at a time where it’s still difficult due to missing WebExtension features.
 
if hex is not None:
    if isinstance(hex, uuid.UUID):
        int = hex.int
    else:
        # original code
 
– But of course, the party to blame is actually Mozilla for making this politics move about disabling XUL extensions.
 
10:36 AM
Cabbage
 
I started using Tamper with my new firefox for want of GM, but at one point it stalled my fox for minutes during an auto-update so I happily ditched it when GM came (too bad that's useless for the time being)
Cbg, J Richard:)
 
Mmmm, new Firefox chat. I am happy my loyalty to FF has been rewarded with speeeeeeed.
Hi @andras
I have come to seek refuge from my bête noire (teaching probability and statistics).
 
That reminds me: my phone's "shuffle all music tracks" is awful. Songs keep clustering. Beyond what I could attribute to cognitive bias
 
And you've tested it?
 
@JRichardSnape I absolutely love Firefox. But I don’t agree at all how they handled the XUL extension deprecation :)
 
10:41 AM
I thought my music apps shuffle was bad too until I realized I only had 2 songs in my playlist.
 
@JRichardSnape firefox is and always has been the better browser
 
@poke Yes, I can only agree. That was badly handled. I recalled you were a fellow fan.
 
frankly, xul was awful :d
 
@AnttiHaapala Agreed Antti. Hence my loyalty.
 
@AnttiHaapala But it’s still what most extensions are built with. And it’s still the only way many extensions could work.
 
10:43 AM
I've been hacking some firefox internals and the XUL was awful but it was nowhere as bad as the XPCOM
 
Having learnt a bit of XUL just to make a contribution to an Open Source project, I can agree it is not good, but have to agree with Poke that it could and should have been handled better.
 
Especially given "it’s still what most extensions are built with. And it’s still the only way many extensions could work."
 
yeah I don't know how to make the thing we built in 2011^ work without xul extensions
 
Most things just cannot work. WebExtensions are nowhere near as far. There are too many features missing.
 
10:45 AM
@AnttiHaapala :D - a post for you to be proud of there.
 
I guess the patch is useless now
 
And many features will likely never come, since they go too deep into the browser internals. But that was a key feature what originally made Firefox popular. That extensions could change so much.
 
what originally made firefox popular was that it was faster than mozilla/netscape
 
@piRSquared I'm in the dogmatically grumping stage
I have 150 tracks
 
@AndrasDeak "Beyond what I could attribute to cognitive bias". I presume this has been rigorously tested, given our propensity to have incredibly wrong intuition when it comes to "runs" in data ;)
Mind you, it's probably got some crappy learning algorithm that tries to account for what you listen to most and accidentally reinforces itself into some local maximum or other
 
10:54 AM
The bugs.python.org OpenID handling is rather.. peculiar. And they removed the Google login option.
Good thing there's a reset-password option.
 
Google now longer offers (classic) OpenID afaik
 
rbrb all
 
bpo is horrible
I wonder if they've by now fixed the emails :F
 
@JRichardSnape that's what I'm worried about. I'd love to make it use "just yamming shuffle it" mode
 
@MartijnPieters but they still send the new password via email :/
 
11:02 AM
Hello !
 
And I'm a scientist, a being of reason. Surely I cannot be affected by lowly biases and preconceptions.
 
@AndrasDeak Well, obviously the answer is to open it up and use an ultra precise temperature sensor to read minute changes in processor temperature and then trigger the next track selection based on that ;) OTOH, you may just have to live with it. Or make yourself a very long "sounds random to me" playlist that you start at varied positions.
 
wanna hear a joke?
why did 10 die?
 
I'm not sure which one would take more effort :D
 
@AndrasDeak Indeed, from my internet based observations I can confirm you are an entirely objective being, devoid of preconceptions, biases, context or experience.
 
11:03 AM
I also contemplated writing an app that uses shuffle
 
@ParshuramThorat no
just no
 
but now I'm curious
 
@vaultah Okay
 
@JRichardSnape glad we're on the same page ;)
 
11:05 AM
Dunno about 10 but I know who killed my curiosity :-p
 
@AshishNitinPatil Lol, I'm sorry to have done that , would you want me to do something to cheer you up!
 
@Jurgy heck no! While I've got over 10 years of Python under my belt - and fairly au fait with its inner workings , I've only really used pandas for a couple of years and still consider myself a beginner (and never delved deep into how a lot of things work at an implementation level). Just one of those "off the top of my head" things - fairly sure the development crew would have already thought about it/dismissed it. There's a friendly crowd in the Python chatroom including a few very experienced numpy/pandas people... Might be worth saying hi. — Jon Clements ♦ 25 mins ago
^^ kinda did a namedrop there - whether someone turns up is another thing :p
 
@ParshuramThorat it's okay, I was just doing my usual friendly banter
 
@AshishNitinPatil hehe, yea I know. you still curious to find why 10 died ?
 
11:08 AM
I googled it :|
It's a bit morbid
 
@AshishNitinPatil Was it a vengeful cat?
 
Unless you know of a different reason for that
 
"That Curiosity killed my ma' and pa' - I'm gonna go get it like I did the mouse the other day!" :p
 
hehe, yea I know you would. But i have diferent one :P
^Haha :D
 
@ParshuramThorat oh okay, then I'm curious again :-p
 
11:11 AM
9 8 10
please, don't kill me :P
 
well, at least it's not a serial killer
 
Good job ignoring the explicit response of a room owner(@Ashish)
Anyway, teaching rhubarb
 
Well, technically there was no response for the 2nd time it was asked :D
rbrb
 
Ha.
 
@vaultah yup, which you then really do want to change.
 
 
1 hour later…
12:21 PM
 
@RobertGrant Ok. Sorry about the delay. Here's the RLE file, which most Life programs should be able to load Game of Life "cbg" printer in RLE format. Unfortunately, the SO imgur upload thing won't do GIF anims, so I had to resort to PhotoBucket.
user image
7
 
I’m always fascinated when people manage to achieve something useful with Life that isn’t just random crap.
 
Cabbage
 
5.9 n€rdCr€dit
 
12:35 PM
@ArneRecknagel I think you commented out what you wanted to say there.
 
How to solve partial differentiation with tensorflow , if anyone tried let me know ? there is only one example with rain drop problem which is not what i am looking for.
 
@poke :p
its a new way of showing appreciation, meant to be two clapping hands
or the joke just flew over my head
 
heh, I see ;)
And no, the joke was intended :P
 
Thanks, poke. There was an earlier system of doing printing using spaceships like that, but it used p46 technology (oscillators and guns with a period of 46). I figured out a more efficient p30 system, which gives greater horizontal density. I also invented those p30 memory loops.
 
I have no idea what that means but well done!
 
12:47 PM
:) The "cbg" pattern is built out of lightweight spaceships (LWSS) which are produced by guns that emit a new LWSS every 30 steps. The "cbg" pattern is built by selectively destroying LWSSes by colliding them with gliders that emerge from memory loops: patterns that allow a loop of gliders to circulate indefinitely. When a glider reaches the corner of a memory loop it can be duplicated to allow output from the memory loop.
 
So, when you build stuff like that, do you actually know these patters, or are you putting this together out of common blocks you have saved somewhere?
 
@ArneRecknagel It's a bit easier to recognize if you add a head: O//
 
@poke really?... it's all obvious, innit? :p
I thought everyone knows about spaceships, guns and gliders?
 
@Rawing Ö//
Thanks for the heads-up!
 
@JonClements Well, obviously, now that PM explained it, it’s all crystal clear. I don’t know why I ever had problems coming up with things like that myself…!
 
12:53 PM
@poke of course... you must have been thinking like I was: "Wow! That's awesome. I wonder if we can improve upon that by using UFOs, air-rifles and blimps...", right?
 
I was thinking about introducing cowboys!
 
It's amazing the missions that James Bond gets sent on...
 
Well, he did have a fair amount experience in space
 
Good point - plus - there's no end of gadgets Q can come up with...
 
even if they are always kind of the same things…
and mostly in car form
 
12:58 PM
A man can't have too many watches that do cool stuff... those put the iWatch to shame!
 
That’s true!
 
Unless there's an "app for that" now or something :)
 
And I also wouldn’t mind a flip phone that lets me drive my car.
 
@PM2Ring the glorious age when one can create Life at will
 
@poke Yes, I have a library of well-known basic building blocks, and simple patterns built from those blocks. Some of those patterns I discovered myself, but many of them were invented / discovered by others. I didn't assemble that "cbg" printer by hand, though, I used a Python script which I originally wrote several years ago but which I made a few improvements to earlier this year. The excellent Life program Golly has a built-in Python interpreter, it also supports Perl.
 
1:00 PM
@JonClements Oh, the well known “Real Explosion” app that finally made it through Apple’s app store submitting process!
@PM2Ring That’s cool :o
 
@PM2Ring nice of you to write a message in English again :)
 
There's a great collection of Life patterns in the LifeWiki. There's a lot of stuff that's not in there, but it's a good starting point for people who want to mess around with Life patterns.
 
Isn't GoL a bit limited in what you can use it for? I think all creations I've seen have been things (factories?) shooting other things (gliders?)
 
Limited, yes. Able to simulate GoL, also yes.
 
It's been proven turing-complete, hasn't it
I was thinking of "things you can realistically use it for" :P
 
1:15 PM
In the early years of Life research one of the big questions was whether there exist oscillating patterns of every period, or if some periods were impossible to achieve. It was eventually discovered that every period is possible, but in the process all sorts of weird and wonderful patterns were created.
So we now have techniques for building oscillators of any period, and we can build glider guns of any period >=14 (you can't pack them tighter than that or the gliders destroy each other). And so I have a library (which I can easily access via Python) of the most efficient glider guns known for every period from 14 to 1000.
@Rawing GoL is Turing complete, so you can do anything that's computable with it.
 
Wow, these GoL simulators are pretty yammin' fast
I guess building more complex things out of GoL is more viable than I thought
 
Whatever viable means here xD
 
"viable" :P
 
you can only efficiently use it via helper scripts written in python, so it's via-ble
 
Several decades ago, a couple of guys built a pattern that can add 2 binary numbers represented as p60 glider streams. It can handle input streams of any length, so it can do arbitrary precision addition. People were impressed, but nobody incorporated it into more complex patterns. When I started getting interested in building glider circuits I decided to rectify that situation. :)
So I built a pattern that calculates Fibonacci numbers, then one which uses continued fraction techniques to approximate sqrt(2) as a rational number. I also built a limited-precision binary multiplier. My most ambitious glider circuit to date calculates Collatz sequences.
 
1:23 PM
looks like I underestimated the GoL community when I assumed that the average user's creation isn't more complex than a glider factory factory
 
@Rawing Especially if the pattern has a lot of repeated elements. Then it can be generated using Bill Gosper's hashlife algorithm to achieve blisteringly fast speeds, like over a billion generations per second. Of course, that doesn't actually generate all the intermediate generations. :)
@Rawing There have been all sorts of interesting developments in the last decade or so. In the earlier days, a lot of the progress was related to the oscillator search, but these days there's a lot of work being done with so-called stable circuitry, which tends to be slower but more versatile because it's not locked to multiples of the base period.
OTOH, there's still plenty to be discovered in relation to the basic well-known elements. Eg, a few years ago a previously unknown 3 glider collision was discovered that leads to a pattern with infinite growth.
 
*nods* Yes, I totally understood all of what you just said.
 
". . . . BOOM"
audiovisual representation ^
 
Pretty accurate, yeah :D
I've built a full-blown computer in a different particle simulation program, but GoL still goes over my head :D
 
It's easier to do logic gates, counters, etc in various other cellular automata, but I like GoL since it's so well-known and has accumulated such a large collection of building blocks.
 
1:41 PM
Would be interesting to know how many unsuccessful automatons Conway designed before he ended up with GoL
It's surprisingly difficult to find a good balance, so that the particles don't instantly die off or explode
 
@Rawing I don't think it was very many, since the earliest investigations were done by hand.
 
2:14 PM
cabbage
The concurrent.futures API is just godly
 
morning cabbage
 
2:43 PM
\o cbg
 
3:04 PM
cbg
 
how goes it on this Wednesday?
 
I'm not sure I understand the sentiments expressed in the "new nav goes away" meta
> For those of you who rely on saved tabs to find questions, it must be frustrating that we are taking them away even temporarily.
Of registered users who have used Stack Overflow recently, 1% have opted in. Roughly 0.6% have saved a search and just over 0.1% have saved a search with a custom name, sort, or filter. The median reputation of New Nav users is 535. Given how little we did to promote the feature and that it was hidden behind a user preference, that’s amazing conversion. Clearly there’s something useful going on that we need to build into 3.0.
 
Greetings from Thursday. :)
 
I thought those numbers are small :D
@PM2Ring are you a wizard
 
PM I want to answer that OP's question but I think others will be better :P cbg from the future :D
 
3:08 PM
@MooingRawr It's such a basic thing that it would be easy to write 2 sets of code to cover both alternatives. OTOH, the OP needs to learn that you shouldn't try to write code if you don't know what it's supposed to do. So if they don't clarify it in the next 10 minutes I'm going to VTC as unclear.
 
don't forget to downvote answers that include both interpretations
 
@AndrasDeak I guess that's the proper response. Currently there are 2 answers, onefor each interpretation. stackoverflow.com/questions/47437716/…
 
@PM2Ring It's why I didn't answer it :\
 
IMHO, it would be reasonable to assume that the ID is supposed to be a string, since the data list is a list of strings. Also, if that list is huge it's more expensive to convert it all than to simply convert the category.id. But still, it's better not to assume.
 
I stopped dwelling on it for this matter. It can go anywhere and since there's too many unknown, it's best I spend my time on things I do know :D
 
3:15 PM
Wise.
 
AD I read that meta post.... I agree with you, I don't understand what's the sentiments. Maybe it's cause I never paid attention to it :D
 
I'm also in poke's "I've been using new nav and I don't remember the old one" so I guess I'm in for a surprise soon
 
@MooingRawr did you wear the wrong outfit today?
 
hehe
 
@Programmer you actually made me look down at my shirt, I hope you're happy. :\
When people start questioning my shirt, I get start to get paranoid about not knowing the correct day...
 
3:19 PM
Do you really think that shirt goes with your trousers though? :p
no no... not over there... wave to your right instead... hello! :)
 
I would hope Jeans and Tshirt/dress shirt would go well together :D
but then again I'm not a UI/graphic designer so my colors could be off :\
 
Do those guys actually wear clothes? "I can't be bothered to get dressed today - I'll claim I'm trialling new opacity settings..."
 
@PM2Ring YEAAAAAH!
 
Thanks, Robert!
 
3:38 PM
@PM2Ring OP came back to accept an answer :\
 
Yeah, I just noticed that. Oh well. I wonder what they'll do if they find out they've accepted the wrong one. ;)
 
They would ask another question :D /s
 
I must confess I wrote an answer to an ambiguous question a little while ago. But I'm (pretty) sure my code will be helpful to the OP anyway (unless they're using Python 2), since it shows better ways to handle their binary data than what they're currently using. stackoverflow.com/questions/47413640/…
 
@PM2Ring really amazing. I love the GoL stuff, and am always amazed what interesting things people can make given a few constraints.
 
@AndrasDeak :D
I’m really scared though that it will hit me hard
I rather just want to move to v3 immediately >_<
 
3:51 PM
@RobertGrant It can be really addictive when you get into it. I went through a period about a decade or so ago where I probably spent a little too much time on GoL. :) So I decided I need a break, but I've hardly done anything with it in recent years, and I really ought to get back into it before I forget all the stuff I learned.
 
@poke but v3 is not ready and innovative smoke and mirrors are in order
 
That’s just stupid
Imagine we went back to Windows Vista when Microsoft prepared Windows 8…
 
Should I know what GoL is?
 
well 99% of users were still using the old nav
@JonClements Conway's GoL:)
 
@JonClements Game of Life. What we have been talking about the whole day, you included.
So yeah, the answer is yes.
 
3:58 PM
:D
 
Well, if you'd have said something about starships and stuff... I'd have got it - honest gov!
 
Wait - what's Honest GoV? Is that like GoL? Should I know this?
 
It's James Bond stuff innit? Come on - it came up today and all that? tut tut
 
Well, if you'd have said something about spies and stuff... I'd have got it - Honest GoV!
 
At least we didn't cross the p60 glider streams! I've seen a documentary with these guys who are experts in the supernatural thing that do that and it's supposedly a bad thing to happen...
 
4:11 PM
unless the michelin man attacks
 
recbg
 
ugh... OP asked why math.log10(0.5) was yielding 0. I asked him to show us his code as I suspect they're casting it to int(). OP doesn't respond, someone gives an answer of saying "they can't reproduce but it should work (similar to the comments)", OP then respond to that answer saying they've made the mistake of adding int() :(
I think it's a sign for me to get back to work :\
 
then comment that you supsect they're casting to int, downvote and flag for closure
and get 3k rep
 
2nd and last step too hard :D something something cannot compute :D
 
4:28 PM
Poor newbie just deleted their SEO question 6 minutes after posting. I guess they didn't stop to think that it could be seen as spamming. stackoverflow.com/questions/47439452
 
TIL (or rather I think it works this way) if you flag a question, and the OP deletes said question, your flag becomes helpful :\ I should read into the ins and outs of SO more... when I get some time...
 
so what?
don't tell me you haven't been downvoting/close-flagging because you were uncertain about the outcome of your flags :P
 
Flags are generally helpful unless you're totally clueless, or the mods think you're trying to use them as a weapon.
 
I've been close flagging no matter what, I don't care for my outcomes of my flag, which lead me to learn this fact yesterday/today lol....
I just don't down vote :\
 
oh, OK, I thought "the last one" was the "flag for closure" rather than the "get 3k":)
I think close flags get disputed when the post leaves the close vote queue open; I'm not sure they ever get declined.
 
4:32 PM
3k is too hard :( requires much work. flagging is more useful and I personally flag instead of downvote... and leaving comments is what I do more than answering questions :\
 
@vaultah delveable
 
@PM2Ring close flags just trigger stuff to go into the CV queue - we don't directly see them :)
 
Ah, ok.
 
4:42 PM
(of course if all your close flags got reviewed as "leave open" - we might want a word... but...)
Am I going mad or did anyone see stackoverflow.com/questions/47439844/… posted by someone else about 30 mins ago?
 
"I have tried the below script" can be consistent with that
I like the combination of print statements plus optional (alongside )
 
Wasn't that user though... umm...
 
saved by the "are you sure you want to create a new tag?" popup \o/
I was going to create as if wasn't bad enough
 
wow, print >> syntax, I'm not sure I've seen that in the wild
 
4:48 PM
@AndrasDeak I used to use it all the time for printing to stderr.
I'm pretty sure that what this OP wants is impossible, due to the way class scope works. Unless there's some clever trick... stackoverflow.com/questions/47439594/…
 
@PM2Ring umm... one thing that strikes me is that one of the roles of functools.wraps is to preserve the docstring - they're not using that while decorating for a start
There shouldn't be anything though stopping the wrapped method accessing that attribute later
 
can't they just put the decorator inside the class?
 
@JonClements Yeah, they're doing it weirdly, modifying the docstring inside wrapper, because that's the only way they're able to get at the class attribute.
 
@PM2Ring: Messing with the stack would probably do the job, but it seems pointless. They probably know whether change_docstring is set and what it's set to when they write the code, so they can probably just leave out the decorator if they don't want to change the docstring.
 
00:00 - 17:0017:00 - 00:00

« first day (2594 days earlier)      last day (2348 days later) »