« first day (2079 days earlier)      last day (2852 days later) » 
00:00 - 18:0021:00 - 23:00

12:00 AM
That's what's not nice :P
h
logicly
now i will
:P
 
you can make use of the dict in the module
 
of corse
 
the one named d
 
i already did
Well only zen of python
:)
 
yup:)
and it's only encoded such that the zen doesn't explicitly appear in the source
take a look at the file defining the module
 
12:05 AM
I will now
THis is really interesting though :D
 
If you're done looking, here's what you could've googled
(I found it interesting)
 
I just reached exactly 1k rep yay me
 
good job:)
 
YOu wouldn't belive it, I had it open in my browser, and read it already :)
 
time to hit 3k
@MarkoMackic good job you too:P
 
12:09 AM
Thanks man :P now I can be proud of myself lol
 
you get a virtual good boy point for using google:D
 
Haha. Exactly 1k rep. Not a single over.
 
@AndrasDeak I use google a lot :) but like to talk to people too, especially at 2 am
:D
 
@MarkoMackic yeah I know, I'm jut messing with you
 
What're you doing up so early :D
lol
 
12:11 AM
trying to get to sleep
 
I hate this flood protection... me too
 
there's a heat wave here, 34-35 degrees all day
I hate this yamming climate change
 
Well I was going to pool today, here is too warm too
I would like when it would continue too be hot like this, than I could go to river... It's so much more then a pool
We're about 30 degs for a week now
 
yeah that sucks
has school finished for you for this year?
ah, sorry, gotta go now
ping me with your answer, I'll read it tomorrow
good night, @Marko:)
 
 
1 hour later…
1:54 AM
@AndrasDeak sorry, was watching movie, yeah school finished, now 3 months of vacation, I plan to go to the village to rest a bit from computers, and spend it swimming, but yeah, school finished :)
 
 
1 hour later…
3:08 AM
Hey guys
morning
Wondering, how do I inherit my inits from parent class
class ParentClass:
	def __init__(self):
		self.a = 10
		self.b = "hello"

class ChildClass(ParentClass):
	def __init__(self):
		self.c = "Child Class"
	def call_inits(self):
		print(self.a) # <<<< GETS ERROR
		return self.c

abc = ChildClass()
print(abc.call_inits())
 
Cabbage
@Ming The child automatically inherits the parent methods. So if the child doesn't provide its own __init__ the parent __init__ will get called when you create a child instance. You have overridden the parent __init__, but you can get access to it via super(). So (in Python 3) you just need to do super().__init__() as the first statement in your child __init__. See here for an example: stackoverflow.com/a/37134164/4014959
 
3:49 AM
lot of spam posts today
 
4:00 AM
@PM2Ring thanks. works :)
 
4:32 AM
Python3's super is enough reason to change :D
 
 
1 hour later…
5:41 AM
cbg
 
6:00 AM
re-cbg
 
6:20 AM
cbg
what's the proper way of having flexible array members in cython structs?
 
 
2 hours later…
8:38 AM
"Boris Johnson said the result would not mean "pulling up the drawbridge"." He is assuming the hinge is on our side. #Brexit
 
ADG
8:57 AM
python equivalent of array of lists/
?
 
cabbage
@ZeroPiraeus nice
 
@ADG That would be a list of lists :-)
If you want to initialize a list of empty lists, you can do:
x = [[] for _ in range(10)]
 
@MarkoMackic ah, I see. Why would you want to get a rest from computers, is something wrong with you?:P
 
ADG
a=3,b=4,c=5.... then... list(a,b,c)... will it work?
 
@ADG Did you try it yourself?
 
ADG
yes it doesnt
im trying to learn python.. i know java
 
Ok. list() takes a single iterable argument, so you could do:
a=3; b=4; c=5; list((a,b,c))
But this is simpler:
a=3; b=4; c=5; [a, b, c]
 
ADG
thanks
 
10:01 AM
@ADG have you tried any tutorials?:)
 
ADG
cant find any suitable ones, have seen thenewbostons's yotubue one
they are either too basic or too short
it seems hard to switch languages
 
Since you already know how to program you should have no trouble following the official Python tutorial.
 
ADG
ok thanks
 
@ADG It will take a little bit of time (& effort) to get used to the differences between Java and Python. You may find this article helpful: Facts and myths about Python names and values, which was written by SO veteran Ned Batchelder.
 
This petition is currently running at a little short of 50 signatures per second.
 
Referendumception!
Isn't it a bit late for this rule to be implemented?
And why 60%? Sounds a bit...arbitrary
 
The one we just had was consultative; in theory the government could just ignore it ...
It's not unheard of for referenda to stipulate supermajorities ... I would say 2/3 would be the obvious figure for something that's effectively a constitutional change.
 
I wonder whether human ethology (namely rationalization) would allow them to do that
I have a suspicion that a buttload of people who have already regretted it would carry on still, lest they appear ignorant or unwise
 
... and Cameron's gotta be kicking himself that he didn't accept the proposal to allow 16/17-year-olds to vote now.
 
10:37 AM
@ZeroPiraeus 2/3, yes. 60%, no:)
 
I can imagine Juncker responding to a remain vote second time round with an "Oh, really? Interesting. Ok then, about that rebate ..."
 
Hey @Zero, would you mind hammering this? stackoverflow.com/questions/38027135/…
 
Done.
 
Thanks.
 
 
2 hours later…
12:59 PM
@AndrasDeak nope :) I'm hanging too much on them really, some nature will be good for my eyes :D
I take maybe 16 days on village every school vacation because I'd not like to wear glasses in near future :)
 
@MarkoMackic :) Good luck with that
I've spent all my childhood summers in the countryside, without even a TV
yet I gradually became short-sighted by the age of 18-20
it might help more if you relax your eyes (focus to distant objects) multiple times a day, often, every day
 
1:16 PM
@AndrasDeak I saw that interesting triple pendulum thing you posted yesterday (?). You can get some nice patterns even with simple pendulums. Here's something I did in JavaScript a few years ago: interactiveds.com.au/images/DP.htm
3
 
pretty:)
but, alas, no chaos:P
quite hypnotic
 
@AndrasDeak Of course there's no chaos, it simple harmonic motion. :)
 
yeah
so does this actually solve the differential equation, or just plots a sine?:P
 
@Andras causing troubles in SOCVR :P
 
again??:D
I'm actually fairly conscious of my phrasing in SOCVR, I never would've thought I'd get flagged there of all places
 
1:23 PM
Yeah suppose you've got to be cautious, don't want mods attracted to your little voting ring.
 
oh, good point
 
:P
 
I should use more socks and more vpns
waits for mod flag
 
On average I use 2 socks at a time.
 
only with sandals
I just expressed it elsewhere that I just won't be able to make it to 10k until my anniversary on SO (in 5 days)
<-- well, "just won't be able" might be a stretch, I've been slacking off
I surely wouldn't have this problem with a proper voting ring:P
 
1:26 PM
Surely that's just what you want people to think?
 
(ssssssssh)
 
If you go 1 to 20k in 3 weeks then it's obvious you're Martijn using a voting ring.
 
(there's something for you under the table)
:D
Martijn's voting ring is the whole userbase
 
@AndrasDeak Sorry, they're just ideal pendulums doing perfect simple harmonic motion, using built-in trig functions... the source code's fairly readable; here's a short excerpt:
th = th0 * Math.cos(this.freq * time),
cx = ox + this.len * Math.sin(th),
cy = this.len * Math.cos(th);
 
@PM2Ring sorry, I'm so JS-unsavvy that I rarely think to look at the source
I would've figured that out otherwise:)
 
1:30 PM
Hi! I'm new here.. Is it always this much fun around here?
I didn't even know SO had chat rooms
Btw, @PM2Ring your pendulums are hypnotic
 
Cabbage @SvbZ3r0. What fun?:D
 
lol
 
@AndrasDeak I wrote that 5 years ago; I wouldn't be able to write it from scratch today. :) I guess I should do a bit of JS revision before I forget it all. :)
 
I thought SO was more... serious
 
@PM2 wow. Setting shrinkage to -9 gets funky :D
 
1:31 PM
@SvbZ3r0 Thanks!
 
@PM2Ring I guess not forgetting it easier than relearning:)
 
@Ffisegydd try a 100 pendulums.
 
3000 crashed my page
 
-9 shrinkage is trippy
 
cbg folks
 
DSM
1:36 PM
Maltese cabbage for all.
 
whats cbg?
 
cbg = hi
 
how does that work?
 
So -9 shrinkage froze my Ubuntu
Thumbs up Fizzy and Firefox:P
@DSM How long do chat flags linger...?:D
cabbage
 
DSM
1:40 PM
Long enough they were still pending for me when I showed up, anyhow..
 
Ffyrefochs froze my computer
 
@SvbZ3r0 The chat rooms are slightly less serious, but we still expect people to behave responsibly in here.
 
@PM2Ring That means no swearing, then? Yam!!
 
I picked "Mega Ban" for the flag.
 
1:41 PM
@AndrasDeak Yeah, my old Firefox running on Mepis Linux didn't like negative shrinkage, either.
 
:/
at first I thought that it ate all my memory, but there was an apparent lack of thrashing
reisub fixed it.....
 
@SvbZ3r0 We do prefer it if people avoid swear words, but the occasional lapse will be forgiven. :) OTOH, being disrespectful of others is not on, no matter what words you use.
 
Ahh don't worry! You won't find me rude..
I love rainbow monkeys
 
damn right we won't!
rhubarb for now, keep those flags coming
 
See ya, Andras.
 
1:57 PM
rbrb guys
 
Bye, @SvbZ3r0. You should try dropping by at a busier time of the week.
 
Will do
 
@DSM Malta: the country that gave us maltpoltlib
 
 
1 hour later…
3:01 PM
recbg
 
3:42 PM
should be hammered with Ned Batchelder's name binding blog post
although I'm struggling to find a good dupe target, surprising
I'm going to confront the user with that dupe target
 
@AndrasDeak Looks good to me.
 
thanks
You managed to write 4 sentences as answer, yet without ever mentioning names or rebinding or mutability. Honestly, if I didn't know what was going on, I wouldn't be wiser from your answer. I suggest voting for a dupe with this post -- you do have a gold badge, right? — Andras Deak 47 secs ago
is it possible that a gold badger doesn't know how mutability works?
just reading the answer, it seems to be entirely wrong
ah, no, I misread, he just fails to get close to explaining it at all
*grump grump*
kindall deleted his answer
no hammer yet...
 
Wow, I wasn't expecting the deletion. But you were a bit heavy, IMHO; I prefer a more diplomatic approach.
 
if it was a good answer, I would've been diplomatic
if he bothers answering a basic question, make it so that the noob asker will find it helpful
his answer as it stood should've been a comment at best
I'm usually diplomatic
he might be writing a proper answer, since he still hasn't hammered it
 
3:58 PM
cbg
 
or just thought "yam that asshole" and moved on:P
@SvbZ3r0 cabbage
 
I just came across this question and was wondering... what exactly are circular references useful for?
 
there was a recent discussion about this here
Jun 8 at 14:37, by Andras Deak
so is a recursive list a useful animal? or is it a weird equivalent of a nan?
read around it for the discussion
 
going thru it
 
it started before that, it seems
I arrived near that point and I'm too lazy to search for the beginning:)
 
4:01 PM
@AndrasDeak Some of the older SO members still do things the old way, and don't even think to do a dupe search. So I try to cut them a little bit of slack, unless they're sufficiently active that I recognise their username.
 
sure, but that still doesn't mean that the answer should be unhelpful
anyway, I accept that I might have been too harsh
if we get in contact soon I'll apologize to him
 
@AndrasDeak Yeah, I guess it's possible that he really doesn't get how the Python data model works, despite having a gold badge. If that's the case, I hope he reads the Ned Batchelder article I linked. :)
 
@PM2Ring no, I think he got it. I misread his first "paragraph". He was talking about "local x variable assuming the value of the input one after the other" which was a bit odd, but he probably just meant that a new local variable is being bound to the 2*x list
 
@SvbZ3r0 Their main use is that you can load recursive data into a list without crashing your program. ;)
 
Yes.. But why would you want recursive data in the first place?
I read the answer on the question Andras linked to but it doesn't make much sense to me
 
4:07 PM
that was addressed in the chat transcript
 
I'm going thru the chat history as we speak
 
wait, was it somewhere else?
 
was what somewhere else?
 
examples for recursive structures
 
DSM
what's on second!
 
4:09 PM
who's where?
 
DSM
Oh, man, you couldn't have waited another second, Andras?!
 
no, I suck:(
 
DSM
I sometimes wish chat had a "give me a sec, I've got something" pause button.
 
you can move messages, you know:P
 
DSM
A great and terrible power, not to be abused.
 
4:10 PM
a good reference is always sometimes worth it:P
 
Hi guys
 
hey
I hate chat's search engine
no, no, I despise it
 
DSM
It doesn't even work, AFAICT.
 
chat has a search??
 
the transcript does
but it's even crappier than the main site's search engine
 
4:12 PM
Can anybody suggest me good editor for python?
 
but unlike the main site, I don't think google indexes chat
 
@Learning Sublime text 3
is what i use
its pretty good
 
DSM
We have a recommended page.
 
But I dont gave high configuration in my laptop
 
@AndrasDeak I'm still learning to use this thing.. Its sooo...... unweildy
 
4:13 PM
@AndrasDeak Who's on first.
 
rbrb
 
I have 6 gb ram so this editor is good for this configuration?
 
@PM2Ring oh right
I never knew the original and it's been a while since I've seen Rain man
 
DSM
At 6 GB I don't think ram is going to affect your choice of editor.
 
@AndrasDeak Well, the original was a bit before your time. It was even a bit before my time. :)
 
4:16 PM
as long as you have a 64bit operating system
@PM2Ring yeah, in ancient days when colours were not invented yet
 
Ok thank you guys
Guys just 1 thing I have notice that is python used in only some of the big software companies
Because where I have small software companies where I live and not a single company works on python
 
DSM
If by that you mean that only big software companies use Python, you're wrong; if you mean that there are big software companies which don't use Python, you're right, but that's true of almost every language except probably JavaScript.
 
Sorry I mean that only big software companies works on python
And small companies dont work on it
Infact I have never seen any python job in my cities or nearby cities where software companies are there
 
DSM
At my last firm (< 20 people) we did almost all of our analysis in Python, and I considered working for another similar-sized firm which was also a Python shop.
I can't speak for your region, but I can say it does seem unrepresentative.
 
@SvbZ3r0 I didn't find what I was looking for in chat because what I remembered was on the SO post linked......
Directed cyclic graphs come to mind. One simple contrived example: we want to express the relationships of a group of people. Each person is a list whose first element is their name, and every following element is a person they like. If Alice likes Bob and Carol, and Bob likes Alice, the data structure looks like ["Alice", ["Carol"], ["Bob", [...]]]. — Kevin Apr 29 '15 at 13:47
I remembered Kevin being the author, which tripped me up
 
4:23 PM
Why somebody will choose python over java or .net or php
 
I happen to know of shops in the UK that are small (< 40 say) and that use Python extensively.
 
Although this are very popular programming languages nowadays
 
All languages have their advantages, apart from php.
 
DSM
PHP could have, umm, the advantage you wouldn't need to rewrite an existing codebase.
 
One user of this room said instagram is written in python
 
4:26 PM
close
 
So python can be use to create mobile app too
??
 
he also said "not the app of course, the backend"
 
Though Python can also be used to make mobile apps.
 
and yes, python can be used to create apps
and I've tried, and don't do that
 
Someone want to hammer this, please? stackoverflow.com/questions/38030069/…
 
4:26 PM
it sucks
 
@AndrasDeak any reason?
 
@Learning it's not designed to do that
there are modules letting you stay away from the underlying android/java bits, but they are too much in development
 
DSM
Ah, so it's a library maturity problem.
 
you wouldn't skin a giraffe with a spork, right?
@DSM I think it's a question of "write android apps in android"
 
Python is designed to do lots of things, and it can do mobile apps, but at the same time there are other technologies that are more suited to it.
 
4:29 PM
@Learning The mobile platforms don't make it easy to run Python, so it's a bit unpleasant compared to using Java.
 
You should use the most appropriate tool for the job, sometimes Python might be best for mobile apps if you need rapid prototyping, etc.
 
So what according to you guys python is best suited for
 
Everything, and nothing.
 
@Learning eating rats
 
DSM
Apropos of nothing, the other day I was in a conversation in which I found myself using the phrase "Guatemalan helipad".
 
4:29 PM
and making fun of ruby
 
DSM
Our somewhat goofy younger brother.
 
reminds me of "Octave is the retarded cousin of MATLAB"
 
Also known by his formal name, Corundum.
 
Allegedly, you can do Android apps in Python using Kivy, but from the questions we get on SO Kivy seems a bit flakey. But maybe I only see questions from people who don't know what they're doing. :)
 
kivy is great for the GUI bit
but kivy only handles graphics, independently from apps
it needs python-for-android or plyer or pyjnius to work with android, which handle the interfacing between java and python
it can handle very basic things such as notifications and vibrate, but I couldn't set up a phone state listener (which I assume to be a simple thing to do)
and the compiled app was huge, 40 MB, even though it was very bare and minimal
I might have imported too many things, but as it didn't work the begin with, I didn't try to play with that
 
DSM
4:33 PM
Whenever I think of writing a mobile or desktop app (most of my code is command-line), I find myself thinking I should just do it as a browser-based application instead.
 
Yeah same.
 
Suppose I create a python program to read data from database but database is sql server
 
Mobile is a passing fad.
 
Then will this program will work?
 
@Learning hmm
 
DSM
4:34 PM
I did it yesterday, FWIW.
 
How are we supposed to know, @Learning? :/
That's an insanely broad question.
 
Come on Fizzy, it's not that hard. Yes or no?
 
DSM
He might be asking just if it's possible, in which case the answer is yes.
 
I read somewhere that python is best for hacking
 
pfft
also, first define hacking
but don't define it, I was being rhetorical
 
4:38 PM
I have read that in 1 magazine
 
That magazine was especially on ethical hacking
In which it was written like python is good for hacking
 
Okay?
 
What are your views guys as you all are experienced python programmers
 
Views on what, exactly?
Considering that we're experienced programmers, but not necessarily experienced pen testers.
 
DSM
4:40 PM
@PM2Ring: I like visiting that pendulum thing every few minutes to see what state it's in. More fun than it should be.
 
I also did a raytraced version in POV-Ray, with proper reflections and stuff. But it's more fun when you can fiddle with the parameters.
 
@Ffisegydd I do have some experience. The best ones are fine-tip gel pens, but you have to be careful not to press them too hard on the paper. If you do, it needs additional testing.
 
DSM
I heard an hour-long interview with a guy who runs a pen website and weekly pen-themed podcast once.
 
Strong choice. I'm a fan of fountain pens myself.
 
> I am Sheldon Cooper, and this is Sheldon Cooper's Fun With Flags
 
DSM
4:45 PM
> Myke is back from WWDC and he got gifts! We talk about the goods that were delivered, and especially the Nakaya he got to test out. We also dig into the new Field Notes Byline edition, and we now have an Akkerman soundboard!
 
I probably paraphrased him
soundboard doesn't sound like a pen
 
DSM
> We also discuss desert island pens, paper, and inks, and answer a boatload of user questions.
 
You're just not thinking big enough.
 
possible
write your creativity on the canvas of future culture
 
I do like a good pen. My dad does woodworking and makes pens from wood.
 
4:47 PM
<mind blown .gif>
 
He makes the main shaft and the lid on the lathe, then fits in silver/brass fittings.
 
I need pens that facilitate my teeny-tiny letters and the lack of their readability
lathes are cool
 
Lathes are cool. And it's very fiddly work, having to make the centre hollow and then having to turn it down to a few mm thickness.
 
I haven't owned a fountain pen for years, but I do have a dip pen, and a couple of bottles of ink. I mostly use it for writing on birthday & Christmas cards.
 
I've never tried a dip pen.
 
4:52 PM
I always enjoy realizing that SO chat is retro nerd central
 
Fountain pens are just beautiful.
 
:)
I agree with that, but I always hated writing with them
 
If you can use a fountain pen you can use a dip pen. Just don't expect the ink flow to be as even. :) OTOH, a fountain pen is a lot bulkier than a dip pen, so it's easier to do delicate stuff with a dip pen, once you get a feel for how the ink flow works.
 
it might be just a case of bad history from elementary school
 
My mum bought me a fountain pen to use when I was 10, for my Year 6 SATS. I used that same pen in my Year 6 SATS, my Year 9 SATS, my GCSEs, my AS and A Levels, every single university degree, and finally I signed my PhD thesis using it. It's been retired now after 15 years.
 
4:57 PM
nice
 
DSM
I can count on one hand the number of things I own which I haven't lost over that timeframe.
 
I was never able to take good care of my stuff on such time scales
 
Is one of them your hand?
 
I don't think I've got anything else over that time frame.
 
DSM
4:58 PM
It's still there, but I admit I haven't taken very good care of it. Many scars.
 
second-hand hand by now?
 
DSM
:-P
 
Ha. I just heard Lita Ford and Ace Frehley performing Wild Thing on my radio. They aren't kids anymore but they can still rock out.
 
Late Night Cabbage!
 
@thefourtheye cabbage
 
5:07 PM
:)
 
DSM
Cabbage for @thefourtheye and rhubarb for everyone!
 
rhubarb DSM
 
rbrb @DSM :)
 
00:00 - 18:0021:00 - 23:00

« first day (2079 days earlier)      last day (2852 days later) »