« first day (1426 days earlier)      last day (3532 days later) » 

12:05 AM
It's alright - you could be British and generally whingeing that we keep getting beaten at the sports we invented..
 
DSM
Do you have a lot of international clients?
 
Most of them are international
I should say, many of my end clients are international
I can't seem to break into the UK market, which is vaguely amusing
 
DSM
Familiarity breeds contempt, I guess.
 
Possibly ;) - nah. I tend to find most of my potential UK clients are starting to come from the banking industry - and they want 100% of my time. Which I cannot commit. I have too many rolling commitments
 
12:59 AM
@DSM What's your hockey team btw?
 
 
2 hours later…
3:15 AM
can someone tell me what OP stands for?
(not over powered)
 
Original Poster
 
i'll give u an example stackoverflow.com/q/4008976/1186038
is it still original poster?
 
if you mean the first comment , he is referring to Gogoo
 
yea .. and what is Gogoo?
 
username of the person who asked the question
 
3:22 AM
OHH kk so what does it actually stand for im just so curious for the long form
nvm .. omg it is really original poster
 
137
Q: Stack Exchange Glossary - Dictionary of Commonly-Used Terms

Adam DavisWhat are the common phrases, words, abbreviations that are used on Stack Overflow, Server Fault, Super User, Meta Stack Overflow, and the other Stack Exchange sites? This is meant to be a very quick overview, not an in-depth tutorial. When considering whether a term ought to be included, please ...

 
cheers =p
@Swordy damn i could have got 44 upvotes .. meta.stackexchange.com/questions/146513/what-does-op-mean?lq=1
 
you could try again but this time you won't be so lucky ..
 
hahaha wel I have to be the first person to ask it.. so there is no point. and swordy r u proficient with pydev jython?
 
Nope , sorry :(
 
4:30 AM
 
Woow , 3 answers within a minute!!
 
Yeah, all of them pointless and at least two by people who should know better ...
 
5:14 AM
C B G C B G C B G
B G C B G C B G C
G C B G C B G C B
C B G C B G C B G
B G C B G C B G C
G C B G C B G C B
C B G C B G C B G
B G C B G C B G C
G C B G C B G C B
 
W o t c
h a   P
e t e r
  : - )
 
5:40 AM
what should happen, if I'm using several libraries in my project which are under Apache or MIT licenses and my own work is under GPLv3?
 
is this possible, am I allowed to do that?
 
@PeterVaro see the GPL compatibility
 
cbg @AnttiHaapala
which says?
 
the green licenses you can link without problems
 
the yellow means that no one can take that library and link it to GPL code
you as a copyright holder of your all GPL code can license it so that permission is given to link it against X
 
checking
 
@ZeroPiraeus hem, put on hold 5 mins ago :D
 
Yeah, didn't notice that happened while I was writing that comment. Ah well.
 
-5
Q: Why doesn't my code work? Please look and see if you can help me

SusanAssuming that the population of a country A is of the order of 80 000 inhabitants with a rate annual growth of 3% and the population B is the population of 20 0000 inhabitants at a rate of growthprogram to calculate and write the number of years required for the population of country A exceeds...

zero: you can cv that
 
5:45 AM
@AnttiHaapala okay, so all the external works are compatible with my license, the question is: can I redistribute the source of them with my source?
for example, two of the original works are single header "libs"
 
yes ofc, but unless they allow you to relicense, they are under their respective licenses
 
oh, okay, thanks :)
 
@AnttiHaapala Don't really want to dogpile ... you never know, new users sometimes take advice ;-)
 
@ZeroPiraeus I looked at her history and no
in any case, that q was clearly "unclear what you're asking"
as it had syntax error, the question asked about syntax error, and the answer was about snytax error first, then the q was edited to remove the syntax error, and the question was "does not work".
 
Only been a member two days though, and hasn't had a lot of feedback to go with the down- and close-votes. Also I'm in a friendly mood :-)
 
5:49 AM
hmm
cv i think is the most appropriate
not dv :D
 
6:00 AM
finally , I know stewie's name :D
@AnttiHaapala you familiar pandas?
 
@Swordy Shush now ... the True Name of Stewie holds great and terrible power, as befitting a practitioner of the Dark Sciences.
 
@Jerry cabbage
 
... and lo, there was a murmuring as from a direction unknowable by human senses. The Forbidden Initials hung crackling in the air, until suddenly ...
1 message moved to Trash
 
@Swordy I am the unknown koalas
 
6:16 AM
@ZeroPiraeus lol
 
Cabbage
 
Past my bedtime, I think - cbg @Robert ... and rbrb all.
 
Question of the day: why doesn't [1]*3 result in [[1],[1],[1]]
 
@Swordy cabbage. Internet's not too good here. Took me a good couple of minutes and tries to get chat to load properly =/
 
@RobertGrant list object??
def modify_building(str1,a1):
    str2 = ""
    if str1 is not None :
       try :
        [l1,l2] = dict2[str1] #retrieve lat long of current building
        except KeyError:
              str2 = str1
              return str2
       List1 = dict1[a1]       #list of buildings in that area
       for item in List1:
            [l3,l4] = dict2[item]
            m = distance(l1,l2,l3,l4)
            if ((m<200)&(difflib.SequenceMatcher(None,item, str1).ratio()>0.7)):
               str2 = item
               break
in this function , if key in dict2[str1] isn't present will the function exit at
except KeyError:
              str2 = str1
              return str2
or will it execute till the end?
 
7:21 AM
@Swordy sorry, this is how little I know :)
I thought [[1]*3]*2 yields [[1, 1, 1], [1, 1, 1]]
I was wondering why the second multiplication (*2) wraps the [[1]*3] in a list, whereas [1]*3 doesn't wrap [1] in a list
@Swordy should be at the return str2, wiki.python.org/moin/KeyError says asking for a key that doesn't exist in the dict results in a KeyError
unless the key is None, in which case it won't pass the if statement
 
Hello everyone!!
 
I guess the whole set of instructions should come under try: and "except" will come at the end just before the last else statement
 
@MohammadRafayAleem cabbage
 
Can anyone please look at this and help me out on this? stackoverflow.com/questions/25771266/…
 
@Swordy you can use try/else if you only want to make certain sections of the code catchable
 
7:30 AM
There will be some missing keys , hence "Keyerror "
 
I want to cascade callbacks in Python
I wrote something like this to be used by the reduce function:
`def cascade_modifiers(modifier1, modifier2):

def cascaded_modifier(self, *args, **kwargs):

modifier1(self, *args, **kwargs)
modifier2(self, *args, **kwargs)

return cascaded_modifier`
 
how can I create python expiry less SSL cert ??
openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
I have used
But it will expire after year
 
@Pilot all certificates should expire, as far as I know
That's not a Python command though, certificates are a general technology and standard that various languages can use
If you want it to last longer, maybe specify more days?
Or google the openssl command to see if it has an option to create a cert that doesn't expire
 
7:49 AM
Cbg :)
 
8:01 AM
cbg()
 
@RobertGrant alright .. thanks for your attention
 
8:25 AM
cbg
 
@JonClements cbg
Can I create a batch file that first of all activates the correct environment, and then runs the server?
(dev server)
(Django dev server)
 
(Figured it out)
 
@compski I had more success (in Linux) with using the standalone Jython jar for Eclipse
 
8:41 AM
wow @ColinO'Coal - very long time no see :p
 
Hey @jon jepp long time
too much to do
 
(Morning cabbage glory to all)
 
@ColinO'Coal apart from that - all's good I hope?
 
@JonClements jeah, thanks, and yourself?
 
@IntrepidBrit morning
 
8:47 AM
@Colin busy - but otherwise good ty :)
 
@RobertGrant ta.
How's everyone doing today?
 
@IntrepidBrit I've narrowed my problem down last night to 2 things, one of which is fixed :)
My runserver now runs under the correct venv, which fixes some stuff
But I'm getting this stupid bad module appname.wsgi error, which I seem to get now and again
 
Odd that it's intermittent
 
9:13 AM
Sorry, I mean I'm getting it all the time now, but I've had it before and fixed it by adding more path config to my appname.wsgi file
I just have wsgi.py in my app's root
 
Doesn't it normally reside in: the Project/Project folder?
 
9:33 AM
is there any topic to talk?
 
@sundarnatarajСундар Hm? If you mean "Is there any predefined topics being discussed?", then no
Otherwise, I'm not sure what you mean
 
@IntrepidBrit yes, but I moved it :) According to the 300th This is the right way to lay out a Django app blog post I read
 
@RobertGrant Oh, that's odd. What was the reasoning for it?
 
Er I can probably find the thing
I don't think it says why, I think I was trying to make changes to get it more like that because I was trying to work out why that structure worked with waitress and mine didn't (at the time I hadn't used a wsgi server in dev)
 
9:56 AM
@MattDMo hey thanks for the email. I've added you to the Github, Trello, and Slack (we use Slack for having discussions on sopython-site business as opposed to cluttering here up and having to find fragmented conversation over time).
 
@Ffisegydd STEWIE!!!!!!!!!!!!
 
@RobertGrant Yeah. Smells vaguely like a pathing issue to me then
 
@IntrepidBrit yeah
 
hey guys, not sure this is big enough for a full question thought id ask here

if a != b:
x = False
elif a == c:
x = True
else:
x = False

is it possible to rewrite the above in a more pythonic way?
 
I don't understand how that path is constructed, and what has to be found first to then find everything else :)
 
10:00 AM
x = False if a != c else True
 
@Jo
 
(as it looks like it's supposedly false unless a == c)
 
whoops
@JonClements: what if a == c makes it True but I want to override it with a != b
 
Ah pants. Canadian client is back. Where did I put my ball and chain? :)
rhubarb!
 
@IntrepidBrit have fun :)
@Dreen okay - good point: x = True if a != b and a == c else False then
 
10:04 AM
Will this work: x = False if a != b != c else True
One handed while on a call, so I can't tell :)
 
Well chaining != like that is err... not really want you want
 
@JonClements I think that wont work as I want x to be False if a != b not True
 
Yeah you're right, it will also ignore the first case
 
maybe ill make a question
 
I don't think I'm awake yet... and flipping between windows... don't make me think about boolean logic - it's really difficult on lack of sleep :p
@Dreen well... well, I think it's good
 
10:09 AM
What about x = True if a == b == c else False
 
it's True if a != b AND a == c - otherwise it's False
 
It's false if a != b
 
Bah... I'm going to continue concentrating on the client that's getting on my back about reporting stuff
 
@Dreen x = True if a == b == c else False
 
@RobertGrant: actually... that might work
let me test
yeah im pretty sure that works
thanks @RobertGrant
 
10:17 AM
np :)
 
Hey everyone!
 
heyho
 
Ahoy hoy
 
Hey, I just had this doubt, does a fork of open source software have to be open source?
 
10:34 AM
@AnshumanDwibhashi depends on the licence
GPL - yes
 
Okay...
Just a minute
What about the Python imaging library licence?
Python Imaging Library (abbreviated as PIL) is a free library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats. It is available for Windows, Mac OS X and Linux. The latest version of PIL is 1.1.7, was released in September 2009 and supports Python 1.5.2–2.7, with Python 3 support to be released "later". Development appears to be discontinued with the last commit to the PIL repository coming in 2011. Consequently, a successor project called Pillow has forked the PIL repository and added Python 3.x support. This fork has...
 
This is not legal advice: looks as though you still need the licence file (pythonware.com/products/pil/license.htm) there, but it doesn't seem specify that you need to keep the source open
 
And don't forget that these conditions only come into play if you distribute it. Opinions differ about what exactly counts as "distribution".
 
@AnshumanDwibhashi look into pillow as an alternative anyway.
 
I'm aware of pillow, thanyou...
 
@DanielRoseman modify is also mentioned
 
10:54 AM
@Ffisegydd : is the transcript for yesterday's discussion on nidaba available?
 
11:07 AM
@Swordy not yet.
 
Hi guys. whats up?
 
@Amogh not a lot.... just taking lessons on speed peeling :)
 
A colleague just saw this and asked?
"Is that a drilling machine!!"
Anyways is this a Python specific room, or I can discuss django specific problems as well ?
 
don't try this at home @JonClements and @thefourtheye
 
11:24 AM
@Amogh you're welcome to ask Django questions
 
11:34 AM
2 messages moved to recycle bin
 
12:27 PM
Going over some code I wrote a year ago
It's so awful
 
Yes... it's normally quite demoralising to look at code written years ago
 
When did you actually start coding in python?
 
Twas Spring of '09 when I first started coding Python IIRC
 
I started when you were ~9/10 @Swordy :)
 
I was 10 in December 2001
 
12:33 PM
I got my first real python,
downloaded it from the website,
wrote with it until my fingers bled,
was the spring of oh-9
6
@Ffisegydd now that I've ripped Bryan Adams off at all there... cough
 
Pinned. Pinned forever.
 
I started in december 2013
and i owe you guys a lot.. You helped me to the core
 
@Swordy you're welcome :)
Ooooo.... bacon brb
 
In India , there aren't many python developers so as compared to java , .net ,C etc. Had to entirely rely on Google and stackoverflow
 
@Swordy I'm less than 6 months into Python. You're a guru compared to me :)
 
12:44 PM
@RobertGrant nope , the problem I've dealth with was too specific , still haven't managed to answer a question on SO .
 
12:54 PM
Oh god all this old code I've written is written in camelCase.
I think I'm gonna hurl.
 
@Ffisegydd no Stewie... you're going to hurt - run from the puppy! Run for your life!!!! :p
starts growling and getting ready to pounce
 
I use x == None and such.
 
cbg
 
cbg @isedev
 
12:57 PM
@Ffisegydd that should be picked up in PEP 8
or 8000, if we need a new one
 
It won't be picked up by PEP8
PEP8 is for style.
 
@IntrepidBrit oh cool linux .. jython standalone? did u manage to call java methods using jython?
 
@compski from pink to blue??
 
@Swordy hey??
@Swordy oh my avatar? SO randomly changes my colour from time to time .. dunno why they do that
 
Heard this for the first time , i see kevin and dsm with the same identicon since I joined SO
 
1:04 PM
Urgh as bad as camelCase was it was better than now I've refactored it. It looks terrible. self.normal_p_k1_err = np.sqrt(pcov[1][1]) look at that for a variable name
Gravatars depends on your location IIRC. Do you use an anonymiser?
 
hahah i dont use anonymiser.. but i do use my laptop at different places (different wifi ofcourse)
 
Ah ok. It's IP dependent too so that must be it
 
associating different color with different IP? SO surely is pretty suave
 
Appears to be a bug caused by a typo.
 
Umm... I do get confused about ads that google serves sometimes... no7 match made lipstick colours...
I'm struggling to restrain myself from finding the nearest boots that offers such a service... shrugs
 
1:13 PM
This code is 300 lines of pure sh***
 
if only I could write 300 lines of pure something...
 
http://stackoverflow.com/questions/25788492/error-in-re-verbouse
typo - too many parens
software request (???)
 
haha question answering spree
 
Today my office had a minute of silence for 9/11. But I could still hear my coworker (who has a reputation as a chatter box) talking in the other room :-I
Can't even get 60 seconds of peace around here.
 
kevin can i ask wat "cv-pls" means?
 
1:24 PM
@Kevin hard to believe it's 13 years now
 
Close Vote please
@JonClements Yep
 
Anyway... quick snooze while stuff's running... rbrb for a bit
(horrible feeling I'm not going to get any tonight... so...)
 
1:45 PM
@compski Yes - I was using a 3rd party Java library that had better precision than the default Python libraries
 
@IntrepidBrit oh wow so using standalone u cud get my simple example to work?
 
Normally, I'm sure I could. But currently I'm running on ~5 hrs of broken sleep over 48 hours.
To the point where I've started hallucinating slightly. That's healthy right?
But today, I doubt I could print hello world in Python
 
lol sounds normal for heavy duty programmers..
 
@IntrepidBrit not at all. It's a sign of not enough coffee
 
ErRGHGHH. Coffee
 
1:50 PM
lol when i drink coffee it gets my heart racing so hard.. then i gotta poop
 
Hi
Has anyone ever written custom authentication for Djanfo rest Framework ?
 
Not me
 
@AmoghTalpallikar Nope. Never used the Rest framework. Makes me feel like I'm cheating.
Although my Django senses are tingling - why would you want to write custom authentication for Django anyhow? Generally, that way leads to danger
 
I am writing a rest api for a SaaS like app.
so when I do auth I want to check usrname and password per company
instead the whole database.
 
@compski Drank coffee before an important interview once. Never again, came across like a recovering, shivering crack addict. Thankfully, I didn't suffer the coffee poops
(Is that even a thing?)
 
1:54 PM
@IntrepidBrit coffee runs, yes
 
@AmoghTalpallikar Why?
 
there is a middleware that reads the domain name and adds the company model in the request,
 
...I expect
 
@IntrepidBrit: Say one company abc is a client which is running on, abc.myproduct.com
 
I don't get the coffee poops but then I am a disciplined machine who's sole purpose is to turn coffee into witticisms.
 
1:55 PM
and another one is def on def.myproduct.com
 
@Ffisegydd ... must. not. click. on. starbait.
 
I have the same table and same database
 
@AmoghTalpallikar shared database?
 
@IntrepidBrit ahhaha yeap gone thru that b4 .. yes coffee makes u poop coz its like a diuretic .. so especially when u have loose stools u brace for it the moment u drink it -> cheezburger.com/7019636736
 
I can have two users with same username and password in that table for a different company
@IntrepidBrit: yeah!
 
1:56 PM
@AmoghTalpallikar SAAS project?
 
@AmoghTalpallikar So, couldn't you save yourself a LOT of hassle and use Django's Sites handling?
 
Yes
does it handle groups and permissions per site as well ?
we had a discussion and some experienced folks felt django sites will be an overkill.
 
@AmoghTalpallikar And writing your own customised authentication system isn't?
 
It's a single page app in angular
@IntrepidBrit: Now I kind of feel it might just be.
 
It's worth looking into. As a personal rule of thumb, if I'm thinking of customising the authentication system, I step back and rethink what I'm doing.
 

« first day (1426 days earlier)      last day (3532 days later) »