« first day (1704 days earlier)      last day (3243 days later) » 

12:21 AM
why is he so popular?
 
Coz he can hold a web :P
 
@AaronHall former chairman of the PSF?
A well known lecturer and respected community member of the PSF?
 
Oh, I didn't know. :D
I had him reviewing my Q&A post earlier!
 
So @Jon hammered anyone? :D
 
@JonClements believe it or not, I've been known to be helpful with Python in the past too... :P
what's wrong? what are you working on?
Anyone use Ubuntu? Trying to get unicode to show up in firefox
 
12:32 AM
Haha! It wont
 
I take that as a challenge
 
Unicode Bucket Display Challenge
BTW, @Aaron I am about to follow your footsteps from the next week. :P
Say no to FGITW, Yes to Necromancer!
 
FGITW?
@JonClements now I'm hurt that you think I can't help...
 
Fastest Gun in the West.
Brief rbrb, goin out for a cup of coffee
Strange fact that people here sleep by 8pm. I am used to sleeping at 4am :D
 
12:47 AM
@AaronHall ?
 
@JonClements Well, you went argh, what's up?
ok, he no wanna talk
that's ok
violin music plays
Is Nat playing the Godfather?
Man, you guys, so lame how this place shuts off after 8. I'm about to open #python on freenode.
:P
 
cbg all
 
cbg
potato?
 
Javascript is to Algols as Salad is to Stupid In-group Slang.
 
@JonClements going banana! Unfortunately I've had to use some legacy Java at work lately so extra appreciating using Python for my personal projects
 
1:01 AM
You could have said all of that with "coleslaw"
 
:)
 
ah
yeah, #python on freenode IRC is hopping with activity.
 
i wonder if there is a relay bot that would relay messages to and fro between the irc and SO chat
 
@datguy look at the rabbit project we have :)
 
That would be a bad idea
 
1:09 AM
why @AaronHall ? O:
@JonClements rabbit projec from github sopython ?
 
yup - ikd iyt date by now though
 
so what's the deal with virtual environments and python 3.4, virtualenvwrapper or venv?
 
1:40 AM
idk @shuttle87 maybe working with multiple projects with multiple versions ? maybe
 
1:53 AM
Cabbage. :v
 
how goes it @Augusta?
 
A bit lonely but life finds a way. Yourself?
 
Same old... just turning in for bed
 
I see, I see.
 
been an interesting, confusing and somewhat overwhelming day
 
1:55 AM
I see, I see.
SO-ly or IRL-ly?
(is there Salad for this?)
 
oh most on SO
 
Aa. Controversial questions?
 
my name is in blue kinda thing? :)
 
-squints- It is!
But, what's the significance? ^^;;
I feel like the diamond has been there for as long as I've seen it...?
 
nope - just today
 
1:59 AM
My brain is just this side of 'reptillian' so I forget these things pretty quickly and more than that, Congratulations!
Bananas! Pineapple!
Suchthelike.
 
haha... you take care... time for me to rest - see you later
 
Likewise, you. Rest well.
...There are times when I wonder what would happen if I asked a legitimate question, but with the most purposefully-obfuscated code possible. I would actually hope that people would "adjust" my variable names, but code edits being bad form, I wonder what the reaction would be.
 
as you long as you show effort and not trying to blatantly abuse the site, the community is generally well receiving
 
Probably something like, "Uuugh, what is _? What is __?? Do not do this."
I guess there's nothing really "wrong" with giving variables stupid names-- I just feel like it's a little inconsiderate to not at least make your code as understandable as possible, to the extent that the names have some comprehensible name.
 
follow the way of the cabbage you shall never go wrong :)
 
2:05 AM
:y
 
good night for now
 
Good night, once again.
 
2:16 AM
rbrb
 
@JonClements Congrats...
 
That last starred comment almost makes me want to join the salad rebellion
I wonder how the Grand Poobah will feel about that
 
 
4 hours later…
6:56 AM
Mornin' all
 
Hey up
 
Morning
 
Hey up Fizzygood, morning @Jan
 
7:50 AM
cbg all
 
Cabbage, moderator @Jon
 
8:08 AM
@JRichard haha - cbg
 
Cabbage!
Congratulations @Jon!
That was a nice surprise when I woke up this morning :)
 
@poke thought you were about yesterday? :p But melon
 
cbg all
 
cbg @Paolo
 
@Jon I guess I missed it yesterday
 
8:17 AM
Right - tea and toast - be back in a second
 
8:29 AM
Cabbage
Excellent song choice Jon
Wait a second. You're blue? (da ba dee da ba die)
 
Congratulations Jon !! I Hope this is surprise for all :)
 
Did you just make two related song jokes @Intrepid? :p
 
Who knew I was so musically talented?
Ah Scotland
"Don't pray in my school and I won't think in your church.
Sam, Maryhill"
 
@JonClements congrats!!!!!!! :)
 
8:45 AM
melon ;)
How goes your day?
 
I don't want to admit the sound I made when I saw that, it was a mixture of a squeal and a whimper.
 
let's call it a squimper
 
I thought FF was version 2 million by now?
 
9:01 AM
@JonClements So, who did you have to ninja-star to get enmoderated?
 
@Intrepid no one - I just had a word with my mate Blatter - he seems to know how to get elections sorted :p
 
9:13 AM
@Ffisegydd O_O i was 17 when it was released... °_°
 
@Paolo I was 8 :P
My first ever RPG.
 
my first of FF series was the V
 
@JonClements I understand I was summoned about nine hours ago?
Cabbage, all
 
@holdenweb ahh yes... might be travelling tomorrow it appears - so we might have to postpone dinner arrangements - see if I can't put it off though
 
OK, no worries. I have a telephone interview with the GDS Friday morning, and while I could easily manage to do both dinner and the interview it does introduce a little more slack into the arrangements.
@JonClements Anything interesting, or simple tedium?
 
9:23 AM
I'm sure it'll be a joy
 
9:39 AM
is trying to work out how sarcasm laden the previous comment was
 
I meant every single word of it in my mind - I just didn't write what was in my mind
 
9:58 AM
morning *
 
cabbage
 
cbg
why is @JonClements blue?
 
I sinned in a previous life...
 
cbg
 
10:02 AM
cbg
Puppy, Pineapples :-)
 
cbg pups
 
We have detected anomalous unconscious voting coming from your account. Remain calm, helicopters have been dispatched to your location, the people with horns are your friends. — Tim Post ♦ 15 hours ago
@wonderb0lt You should check this out ;-)
162
Q: Welcome two new moderators: Matt and Jon!

Shog9Moderator bluefeet has decided to step down in order to pursue a new career. While we all wish her the best of luck, there's no denying that her efforts will be missed... Especially the hundreds of flags she handled on a daily basis. Therefore, Stack Overflow needs some new moderators. Fortunate...

 
10:18 AM
This room's been really really quiet the last few days... are we all taking a June holiday or something?
 
When I clone a git repository, linux creates a locked folder for me. Is there anyway to prevent this?
Because otherwise I have to do chmod 777 /path/ -R every time
 
@JonClements I'm trying to take a break from ranting about politics ;)
@afonsomatos That's odd. My box doesn't do that. How're you cloning it?
 
@IntrepidBrit I enter the folder and do git clone git@...
I use SSH
 
Why on earth are you ssh'ing in as root?!
 
Because otherwise it asks me to enter the password for sudo :p
 
10:23 AM
That's a giant security flaw and Ubuntu does all sorts of odd things to mitigate these sort of issues
 
I'll try to look into it
 
You shouldn't need to have elevated privileges to clone a repo anyway
 
Yeah - I wouldn't do that - which is what I think Intrepid is saying
 
Cloning into 'conflict'...`
Permission denied (publickey).
^ when I clone without sudo
 
How's your ssh-config file set up?
Sounds like you haven't got the permissions set up properly. Can be a bit of pain to do, but well worth it
 
10:26 AM
Agree with both halves of that last sentence
 
Could it be that I have added a ssh_key while in the root?
Because I can't find any ssh key in the normal user
 
Most likely. SSH gets picky if your home folder/.ssh folder/config file/key permissions are wrong.
Have you tried checking the logs?
 
How do I check them?
 
One sec, let me see if I have a good source for what you need
(Unless the Professor has any useful resources at hand)
@afonsomatos Also - do you have encrypted home folders?
 
Sorry, I don't have any resources and I'm on a <glances around>*sshhhh* Windows box at the moment, so can't even run through what you should see in there exactly - my memory is horribly fallible.
 
10:32 AM
@IntrepidBrit I found it, I added a new SSH-key while in the normal user. It did the job. I did this because I didn't see any ssh-key in the home folder which was really weird.
Afterall where are the ssh_keys stored for the superuser?
 
I don't know - I don't allow direct root login from the outside
 
I'm new the linux though that's why my dumbness.
Thanks a lot though :)
 
@afonsomatos Don't worry about it mate. Getting the keys set up is something that trips up experienced linux users too
 
I note that github recommends cloning using https as well. I have done this usually. If you do use ssh, make sure you use strong keys because of this
 
@IntrepidBrit I'm sure we'll get a good chance to have a rant about the labour leadership thing coming up soon though :)
 
10:36 AM
@JRichardSnape Ooh
That's worrying. But i'm overly paranoid about my keys, so I make sure they're always ---~~~around~~~ at least 4096 bytes
(overkill)
 
"around"?
 
snorts
You're right
ah bugger - I missed the window for editing
 
@thefourtheye :O
 
Now it looks like I'm obsessed with tildes
 
Swish.
 
10:41 AM
@afonsomatos A couple of other friendly comments if you'll have them - it's really good that you're using the ssh config files. Saves a lot of headaches in the future, especially when you're trying to set up ssh connections within other programs. You can just refer to the entry in the ssh config file and means you don't have to learn every deranged way to enter a user/port/key combo
 
To be honest I'm not too deep into the whole SO meta. Only been active in the community since like a month or so :)
But grats @JonClements. :)
 
@IntrepidBrit I'm glad it has its advantages. I am only using ssh because it's really boring to type the password every 10 minutes in https, and I had some trouble caching the password so I moved on to ssh.
 
yeah - https is a pain if you're doing regular commits / clones etc.
I do most work offline and then push up to github infrequently, so it doesn't hit me hard
 
Secondly - unless you need the key for automated tasks, give your private keys passwords. Raises the difficulty barrier for someone trying to compromise your "network" of keyed machines
 
Hello. Would anyone please be so kind and give me some suggestions how I could improve this line of code:
 
10:45 AM
@JRichardSnape why complicating your life? a strong ssh key is enough. using https doesn't offer any security advantage..
 
numbers = "".join([str(m%10) for m in xrange(1, n+1)])
numbers += numbers[-2::-1]
 
comment it :-)
 
numbers will be a string in the form "12345...n...54321"
e.g. for n=13: "1234567890123210987654321" or for n=3: "12321"
 
@PaoloCasciello yeah - you're right - it is. I guess I just got used to it. And I 3 or 4 different machines, so it's a case of setup time vs. remembering one password. swings and roundabouts
 
@JanDvorak Not this kind of suggestion... ;)
And I was just typing the comment.
 
10:48 AM
so tempted to give a Haskell oneliner :-)
 
@JRichardSnape ok well. laziness often wins!! :D :D :D
 
ok... a two-liner. only slighly shorter than this
 
I need Python... :P
 
I suggest keeping this
 
Okay, I will have no other option then. Thanks anyway.
 
10:54 AM
though the ability to slice infinite strings is certainly awesome :-)
 
@ByteCommander what exactly are you trying to do?
 
11 mins ago, by Byte Commander
numbers will be a string in the form "12345...n...54321"
e.g. for n=13: "1234567890123210987654321" or for n=3: "12321"
I need a string with numbers counting up from 1 to n and down again.
 
ahhh
one sec - think I've already answered this somewhere on the site :)
 
And if the number>9, use only the rightmost digit.
Therefore the m%10.
 
11:01 AM
@ByteCommander so what are valid values of n?
 
Can I do synchronize multiple files upload in python
 
@JonClements Any integer. n<=0 results in an empty string.
 
yes, absolutely it's empty string
 
right, and say a value of 29?
 
What do you mean?
 
11:04 AM
suppose string's length is n, then if n = 29, then it's not empty string
 
yes... but what would the result be?
 
It would be "123456789012345678901234567898765432109876543210987654321"
Always use the rightmost digit, if the number has more than one (m%10)
string length is always 2n-1
(for positive n)
 
2n-1 - it's for odd integer, like n=1, 3(1)-1 = 3 - 1 = 2
 
What are you talking about?
if n=3, my string is "12321" of length 2*3-1=5
2*n because I count up and down and -1 because I use the digit in the center only once.
 
why you need this ?
 
11:09 AM
A codewars kata to create a diamond-shaped pattern.
for n=3:
  1
 121
12321
 121
  1
 
this is like doing hand-on exercise for C/C++
 
And therefore I create this numbers string with the max size I need (equals the string in the middle) and then slice it and center the shortened strings and join them together with newlines.
I just started to learn Python and use codewars to train.
 
it pretty simple, you 1 loop for above half lines, and next loop for last last
 
I guess I have to return an object with overwritten compare operator magic methods...
 
in your string - 12321, use 1 loop till 12321, then second loop from 121 to 1
 
11:13 AM
@user3367928 Yes, I could do that, but I don't like having the same code twice just to repeat a thing slightly different.
I have my working solution - I was just wondering whether I could shorten the creation of the numbers string to 1 line instead of 2.
 
I wish x?range accepted an optional argument telling it if I want an exclusive range or inclusive
 
you can do it, in one line too
 
@JanDvorak Normally people do range(0, 10 + 1) to inclusive or without + 1 for exclusive
 
I'll stick to that, thanks
 
Or if range(__, __, -1) which is like a reversed range, you use - 1 for inclusive
 
11:17 AM
can someone translate this to english for me?
> TypeError: sequence item 0: expected string, int found
ah, found it. Apparently Python won't join me an array of integers.
 
Oh, yes.
It only joins strings, so you have to do something like
''.join([ str(i) for i in range(0, 10 + 1) ])
note the str(i)
 
thanks jon clements, to let me know about the python chat
 
> '12/n2' should equal '12\n2'
oops :-\
 
@user3367928 ?
 
When I do inspect element, I could see source code of links, but when I get it using requests or urllib2 it does not contains links. Any thought on this
 
11:22 AM
@nlper they're javascript injected?
 
@JonClements might be, but I could not undestand whether it is or not. this is the link - in.news.yahoo.com/video/…
please open in Chrome
 
I'm not one who has time to debug your personal projects I'm afraid
there's plenty of posts using selenium to automate a browser - look for those instead :)
 
Ooh, congrats on becoming a mod @JonClements
 
Yes jon
Hi how are you?
 
doing well I think - more busy than ever it appears :)
 
11:36 AM
What was my fault in that post?
 
@user3367928 what are you referring to?
 
your deleted post of mine
 
Yes, I did. and if you disagree with my action to do so, then you can raise a post on MSO to have it discussed further...
 
I just want to share the code to other fellow developers around world, bcoz it is rare to get that code
 
it wasn't a question and deleted for self-promotion
if you want to take up a complaint with my action, then take it to MSO
not here - thank you - end of story
 
11:44 AM
Hi, can I use python in php
 
morning everyone
@user3367928 I'm... not sure what that means? You can run PHP from python though
 
How powerful is python?
 
About as powerful as a sturdy diesel engine.
5
 
@user3367928 you're just trolling this room now
 
Vroom Vroom
 
12:08 PM
ugh. Import albums are super expensive
@davidism, from yesterday's response, just wondering if you had an open source example I could check out to see how it works.
 
can I assume that if math.sqrt should return an integer, it does?
 
No
It always returns a float IIRC.
In [8]: import math

In [9]: math.sqrt(9)
Out[9]: 3.0 # Python 3.4
 
I mean, an integer-valued float
 
@Ffisegydd correct
wow - just realised I can edit chat posts with no time constraint - that's interesting
 
as in, if the correct result is an integer value, the returned value will be exact rather than within one ULP?
 
12:19 PM
A quick test indicates that sqrt returns an integer-valued float for every square from 1**2 to 1000000**2
 
nice
 
>>> all([math.sqrt(x**2) == x for x in range(1000000)])
True
 
Hey! That's not fair Jon
 
wow it works as well - blimey
@Intrepid sorry for test there mate :(
 
Haha wow, superpowers
 
12:25 PM
Not sure if sqrt does some kind of special casing for perfect squares... The CPython implementation just calls libm.pow, which I assume is some built-in C thing.
 
... I was bemoaning the fact that I'd love to back-edit my slew of typos
Why, what WERE you doing?
 
is it possible to send additional data in an enrollment email without attaching it to the link?
 
if the math library just forwards it to the floating point coprocessor, does it make the answer platform-dependent?
 
oh wow stackoverflow has a chat. cool stuff
 
12:31 PM
any idea if codewars' python interpreter shows console output correctly if the code times out?
 
@sharpshadow Welcome!
I presume from your comment that you're new to the room, please check out our rules: sopython.com/chatroom
 
A django question: Can I use south with django 1.8? I am quite comfortable with south and don't want to migrate
 
Hi IntrepidBrit, rules applied.
Can someone explain me really quick how this the 'fn' part works in a decorator:

decorator = user_passes_test(my_custom_authenticated)
if fn:
return decorator(fn)
return decorator
 
How can I make list.sort return the actual list? (So I can make one-line lambda)
Found sorted(), seems to do the job
@JanDvorak It says timeout after 6000 ms
Otherwise it's a problem with the server not with the code.
 
> Traceback:
> in
> in sol_equa
> MemoryError
(fixed by switching from range to xrange)
 
12:46 PM
And it's running python 2.7 or something
so python3-only features won't work
 
@sharpshadow Hard to say without seeing where fn is defined. BTW, you can preserve indentation in your code by highlighting your entire message and pressing ctrl-K.
 
@Anuj Why would you want to use South?
 
I am using it from long time and quite comfortable with its commands
no other reason really
if it's not possible to support south with django 1.8, i will move to django inbuilt migrations only
 
@Kevin Thanks it will work out next time.
 
@IntrepidBrit not quite sure why that's allowed actually - if the rule is the owner of a post can't modify within 2 mins or something, delete and remake a new one - not sure why a mod could even want to go back and modify it
 
12:55 PM
@Anuj Well, I advise thinking about moving over to the inbuilt, but I don't see why South would stop working. I believe it's still being maintained
 
There is no South database module 'south.db.mysql' for your database. Please either choose a supported database, check for SOUTH_DATABASE_ADAPTER[S] settings, or remove South from INSTALLED_APPS.
I am seeing this error
 
@IntrepidBrit I had to revert to Django 1.5 with south, from a django 1.7 as things just broke
 
@JonClements Nightmarish. I just haven't gotten around to updating my complex django instances to 1.7
But my simple portals moved across happily
@Anuj How have you defined your DB within settings.py?
 

« first day (1704 days earlier)      last day (3243 days later) »