« first day (1474 days earlier)      last day (3467 days later) » 

1:11 AM
Has anyone in here had any experience with existing python based wiki software? I'm currently trying to decide on which wiki to integrate with an existing Django site I'm working on.
 
 
2 hours later…
3:06 AM
Cbg
 
 
1 hour later…
4:21 AM
cbg all
 
helloow guys
any room for django??
 
4:43 AM
cbg
this room is for all discussions that boggles a human mind
 
5:42 AM
cbg
@Aaeronn there's always room for Django
 
6:25 AM
while doing multiple file uploads with separate upload buttons... do i need separate request handles?
i am trying to handle multiple forms...
 
6:50 AM
hmm
I so wish jython 3 would come
 
@AnttiHaapala guess what
 
7:08 AM
I do not know what I need to guess :D
 
OOXML
:P
It is bad , but working with it is no problem..
 
7:22 AM
Cbg
 
Cbg
 
Cabbage
 
@Ffisegydd so whats ur legal advice on yesterday's content?
 
I haven't looked at it
 
7:30 AM
@DSM if I'm a registered scienceman, does that make you the bitter veteran who had a life as a scienceman but has left it behind for a life of peace coding Java and C++?
But still you sometimes get pulled back into that grainy lifestyle, and you wonder whether you'll truly escape.
@Swordy I can't look right now and even if I did I would not provide legal advice.
 
:(
I trust ur legal advice
 
Then you're a fool.
You do not know me at all, you don't know if I know anything about the law at all.
 
yes i know that u dont know law :P
 
How do you know?
 
yesterday u said something
 
7:36 AM
@Swordy Why do you think it is not leagal?
 
Okay, I'm recovering my files, with PhotoRec (from TestDisk pack afaict). I won't wait another 3 hours for TestDisk "deeper search" on 1TB drive (some of the partitions are not recoverable anyway)...
 
@Swordy so? I could lie through my teeth and tell you that I am a lawyer and you wouldn't know the difference. Please do not ask for legal advice, it is not suitable for a Stack Overflow Python chatroom. I won't have someone giving you (or anyone else, for that matter) legal advice and then having the burden if it somehow goes wrong. Consider this statement official from a Room Owner.
 
i wrote a wrong answer for a question. should i delete it?
 
You'd fix it
 
@ChillarAnand fix it if it can be fixed, if not delete it.
If someone else has since added the "correct" answer then I'd probably just delete it.
 
7:49 AM
@vaultah @Ffisegydd fixed it.
melon :)
 
8:04 AM
CBG all
how to print the contents of the queue ?
 
@d-coder please provide more details.
What is queue?
I really wish I had a @RoomOwners button...
 
Something to do with threading
 
@vaultah Yeah.
import Queue

my = Queue.Queue(maxsize = 5)

def add():
   a = 9
   b = 10
   return a+b

for i in range(0,2):
   print "adding"
   an = add()
   my.put(an)
   my.put(an+1)
After adding the elements to the Queue I want to see the contents
how to do it ?
 
0
Q: Allow Room Owners in chat room to be pinged as a group

FfisegyddIs it possible to add the ability for Room Owners (ROs), as a group, to be "pinged" in the same manner that a normal user can be pinged? At the moment, someone can ping me with @Ffisegydd. I propose that ROs should be ping-able with a similar "group" ping, say @RoomOwners or @ROs. This would all...

 
Woohoo, my first philosophy stack exchange upvote
On my way to glory
 
8:20 AM
Room Meeting: sopython.com/wiki/13 date undecided but sometime week beginning Nov. 3rd. Add whatever you want to the agenda.
@poke @davidism I thought a quick room meeting might be good as things are starting to roll with the sopython-dev side of things. Would you to mind giving a brief update on the status of RABBIT and sopython-site, respectively? What your plans are? etc?. The rest of it I'll probably explain to everyone how things are going to work together (based on the discussion from Slack), and then we can have AOB. Hopefully should be a quickish meeting.
 
@Ffisegydd "I am @RoomOwners/@RO why did you ping me?"
 
9:03 AM
Cabbage.
You pinged me?
I finally got my git tag \o/ (weeks later…)
 
9:21 AM
@poke cbg
 
cbg again. Yeah was just checking you were happy to talk about RABBIT at the meeting.
@vaultah Yeah I did think about them. It's their own fault for having a silly name though :P
That's why I'd make it @RoomOwners rather than @ROs because @ros could well be the first 3 letters of someones name.
 
roomowners could also be someone's username..
 
Room J. Owners
 
Ah, my old friend Roo Mowners would be annoyed at this
 
in case u guys don't remember , typing the first initial brings up a list of available users .
i type @r and there are 6 options available
 
9:32 AM
Swordy if someone has the name RoomOwners then they deserve to be accidentally pinged.
 
@Ffisegydd sure
And they are only pinged if they frequent the room anyway.
 
Cbg :)
Holiday tomorrow \o/
 
@Ian where you going?
 
is this martijn junior?
 
@Ffisegydd Spain :)
Been so busy for the last couple of months (hence lack of activity, sorry :() - will be nice to get away
 
9:35 AM
@Ian but you'll miss the start of Britain's lovely November weather!
 
Awesome, PhotoRec recovered zip archives with subtitles for House episodes I already watched, so useful..
 
@vaultah computer nearly up and running then?
 
@Ffisegydd damn! Apparently it's actually ~25 in South of Spain ATM
 
Mate I would hate that. I like the cold and the rain.
If it could be winter all year I would be a happy Welshman.
 
@Ffisegydd yeah, but I managed to break both Windows and Ubuntu :| Windows can't boot, Ubuntu's files are corrupted and its patition is unrecognizeable. I'd wipe it already, but it contains the latest versions of my chrome extension for SO and my project :(
 
9:40 AM
winter...
 
And I need to fix it before 3rd of November
 
rbrb
 
in django.........."create a link (url) which either updates/creates model objects as per the input..."..........can anyone explain what am i supposed to look for ?
 
@tilaprimera yes, and also Controllers
 
cbg
hrm, anything else I missed on the class attribute answer?
I got a downvote for not having noticed the OP forgot to use self in the methods I copied.
 
@MartijnPieters No I'm joking, it looked comprehensive to me
 
Then after correction, another one for not using self.myvariable, I think. Marcin is never that on-the-ball about the point, perhaps.
 
10:14 AM
We had people over for dinner tonight, so for lunch I have a huge tub of potato salad. Om nom nom.
 
@RobertGrant Yeah, I always get a craving for potato salad when I have dined on people too.
 
Done
 
@RobertGrant melon! mate
 
10:27 AM
@tilaprimera start by creating the models though, sorry, because that's where it all begins. Is that done?
 
10:47 AM
@RobertGrant yea i have the models...
i will read abt the controllers and get back here later..
 
@tilaprimera then yeah, you want a controller that takes the ModelForm and calls save() on it
 
i have done that too..
is django fully MVC..?
there is models ..where in views i have the controller that calls save() on modelform...and templates for the view design
 
Er yeah, depending on what you mean by that :) it has models, views (templates, anyway) and controllers
 
got it..
what's next...?
 
11:16 AM
@tilaprimera no
it is not mvc, nothing in web is mvc
 
apparenly by the django's faqs, it is an MTV
 
melons
 
@AnttiHaapala nothing on the web is MVC?
 
well 98 % of what is "mvc" is not mvc
MVC is a term for gui apps.
nothing just on the server really can be MVC
or then you can say a car is an airplane. just wings missing and it uses wheels to move around instead of airflow and lift; and does not fly, but basically still follows the same laws of physics.
 
11:20 AM
Not sure why it can't be on the server?
 
@RobertGrant it can't solely bc the server really can't update the view
 
Hello.
 
@AnttiHaapala what about with websockets?
 
i have problem in django with $get() in apache serever
it throw error " No 'Access-Control-Allow-Origin' header is present on the requested resource"
 
11:25 AM
@RobertGrant yes, basically it is no feature of any of these "MVC" frameworks
there are mvc frameworks such as Vaadin for java etc...
 
#get () work in firefox but not working with chrome Version 38.0.2125.111 m
 
Hi everyone,
I had to implement a recursive function to compute the number of iterations till |z_n| <=2 or -1 if divergence criteria is not reached (mandelbrot set).
I did the following:
def mandelbrot_recursion(z, n_current, c, n):
    """ (complex, int, complex, int) -> int

    Computes the sequence z_n+1 = z_n^2 + c starting at z_{n_current} = n. In the
    first call of the function z and n_current must be 0.
    Returns the number of iterations n till |z_n| <= 2 or -1 if divergence
    criterion is not reached.
    The output for this function should match the output of Q1 when z = 0 and n_current = 0."""

    while n > 0:
        if (z.real*z.real + z.imag*z.imag) > 4:
            return n_current-1
how would you implement this function?
 
11:51 AM
@AnttiHaapala I don't know the difference between "MVC" and mvc :)
@LalitSingh have you googled it?
 
Ta, I'll look at it after lunch.
But it looks awesome.
 
@AnttiHaapala is it you, in ur profile avatar?
 
12:08 PM
why do people suck so much at driving?
 
@corvid that's what they're all thinking too :)
 
dunno bout that, saw someone driving with both hands texting and not looking at the road at all, going half the speed limit
 
I suck at driving because I have a hard time gauging the exact position and speed of other cars.
 
@Kevin people who say "I can drive, I just can't park hahahaha" don't realise that that's what they sound like :)
@corvid This is why I want to mount a gopro in my car to capture such craptitude
 
college students, dontcha know?
 
12:13 PM
During my commute, I sit at a red light, waiting to turn right onto a two lane road with a high speed limit. I like to play a game while I wait for the green. I look at a car coming towards the intersection and I guess if it's in the left lane or right lane.
I'd say I have a 75% success rate. So if I had chosen to turn right on red at that point, there's a 25% chance the car would smash into me. This demonstrates how I can't trust my own judgement, and that's why I wait for the green.
 
That's amazing
 
@Swordy no, my neighbor
 
I imagine that drivers behind me get impatient at my timid driving style "Turn, you've got plenty of time!" No, sorry hypothetical driver, I won't risk my life so you get to work thirty seconds earlier.
 
eh, I don't really care about slow drivers, unless they insist on driving in the fast lane and not passing anyone
 
@Kevin by driving, aren't you risking your life to get to work a few minutes earlier? :)
 
12:18 PM
I have similar problems with merging. That's why I like to plan my route ahead of time, looking for places where I can merge with no chance of collision. Like where a two lane road expands into a three lane road, I might merge into the new lane at that exact point, since there can't possibly be traffic there yet.
@RobertGrant Yeah, but there's no bike route between me and work, so it's a deadly game either way.
 
Ah. By living further than walking distance from work, aren't you risking your etc etc
 
my commute is too long. It only takes 3 days to listen to a 5-part 10 hour long history lecture on Ghengis Khan
 
@rob ya waste my hole day
 
@RobertGrant yes, but now we're talking about quality-of-life reductions in exchange for safety. The less distance I'm willing to commute for work, the worse the job will be.
Number of potential employment possibilities scales with the square of the distance you can move
 
but did not get anything
 
12:22 PM
 
You're not wasting your time by researching your own problems.
 
Not sure how to respond to meta.stackoverflow.com/questions/275585/… now..
Colour me skeptical, I don't believe the kid made an AI bot clever enough to actually post useful answers.
 
@Swordy "you'd be in zero g even on a flight right through the center of the sun. And could come out the other side." I very much doubt this.
 
And lets not reveal that I am a distributed A.I., shall we? Not sure if the world is ready for the revelation yet.
 
If you're flying up away from the sun, no possible positive acceleration can reduce the g forces it exerts on you.
 
12:25 PM
well photons do
 
does anyone know of any technology which will take a picture (sillhouette) and make it into an SVG, or am I reinventing the wheel here? I made the part of the program to find the edges, now just trying to generate SVG
 
@LalitSingh so this didn't help? stackoverflow.com/questions/22476273/…
 
Do what? reduce the g force an astronaut would feel? photons have such miniscule mass, I wouldn't expect them to do anything.
 
@MartijnPieters successful troll is successful
 
photons have high energy too.. accelerating a human to the speed of photons cant be estimated.. that was just an imaginary question on quora
similar to escaping a black hole..
impossible
 
12:28 PM
Black holes aren't impossible.
 
energy of photons is hf...
 
escaping a black hole is
impossible..
 
and v = c,
 
A person escaping is impossible.
 
and no, you cannot really accelerate humans to c
now
I want to upload caerbannog to pypi
 
12:30 PM
Afternoon all
 
so someone pls tell me how do I get my LICENSE in there?
in sdist
 
Black holes are formed when a high mass star collapses under its own weight after burning out on hydrogen , helium and all heavier elements up till iron (Fe)
 
Well copied ;)
 
And pasted.
 
@AnttiHaapala and i thought it was you
 
12:31 PM
@Ffisegydd don't short change @Swordy
 
@Swordy if you thought so, then why do you ask?
 
If black holes are real, why aren't there white holes too? Checkmate, scientists B-)
 
hey hold on guys , i've done a course on coursera , an astronomy course
i learnt it there
no copy paste.. its a memory game
 
I have besmirched your honour, forgive me.
 
white holes would mean zero mass??
 
12:32 PM
White holes are in the other universe
 
No they'd be a black hole but painted white.
 
Or - according to one theory - the big bang WAS a white hole
 
That lousy other universe, stealing all our matter/energy/information!
 
@IntrepidBrit pfft. I just thought of that
 
black hole in camouflage :D
 
12:33 PM
I automatically reject all theories beginning with "what if the big bang was X?" since they're 99% likely to be coming from a stoner
 
And to travel to the other universe, just jump into a black hole! implementation detail: don't get crushed by infinite tidal force
 
There'd be another kevin there , with maximum number of marked offensive posts in chats.. :D
 
@Swordy but top of the pile for Ruby
 
(not that there's anything wrong with being a stoner. I just don't think they're qualified to discuss astrophysics)
((unless they happen to already be an astrophysicist))
 
@Kevin Mind you - saddle shaped universes melt my brain - so maybe you HAVE to be a stoner for very high level physics
 
12:35 PM
Anyone ever seen that Jet Li movie? One I think it's called. Kevin needs to go to other universes and kill the other Kevins and gain their stars.
 
@RobertGrant thanx for replay but github.com/ottoyiu/django-cors-headers
its not working for me
 
The One was an interesting movie. A motorcycle gets used as an improvised one handed weapon. That should tell you what kind of film it is.
 
Haven't seen it in years. I just remember an extremely young Jason Stratham.
 
Jet Li (or maybe the director) thought that guns and swords are getting too mainstream , lets use bikes instead. Don't be surprised if some director comes up with something like a car being used as a hammer
 
Die Hard 4. Car into a helicopter.
 
12:40 PM
I feel like the Hulk has used cars as boxing gloves before.
 
maybe you guys have forgotten chuck norris
 
Pssh. Chuck Norris ain't all that.
For starters, Bruce Lee kicked his cabbage.
 
has anyone here worked with Robert's Cross Operator or a Sobel Operator?
 
time for me to leave , rbrb all
 
I'll miss you, swordy ;_;
 
12:44 PM
@corvid you never spoke to me and you miss me , sarcastic cabbage like you
 
that doesn't change things between us, we have something special
 
hmm, struggling to find good documentation on how to determine imports in binary files
I know tons of free tools like PEStudio do this
But I want to do it with Python
 
12:53 PM
@majnemɪzdæn ??
"imports in binary files"
you mean: analysis of windows executable dynamic linking requirements?
 
@AnttiHaapala I've been Googling
 
Define "binary files". Do you mean, executables created from Python scripts using a tool such as py2exe?
 
nope, I'd not use a pure python solution
these formats change fast and the best ones are the C libs etc.
 
@AnttiHaapala ok, I'd use one in C, but am having trouble finding something explaining what to use and how to use it
 
though for python+elf, found this: eli.thegreenplace.net/2012/01/06/…
 
12:55 PM
@AnttiHaapala thanks, anything for PE/Windows?
 
@majnemɪzdæn so you need to define your problem set
the easy cases are.. easy.
but in windows and linux, anything can do a dlopen or openlibrary or whatever it was in windows, hidden, etc... so it will not be foolproof
 
@AnttiHaapala indeed, my apologies
it was a half gripe, half plea for help haha
 
so funny, I guess now I get the "Greatest Moron" award, I thought Dan here is some Pakistani named Majnemiz :D
 
@AnttiHaapala haha sorry, IPA ;)
@AnttiHaapala it does cut off the important part in chat for me
I wanted to use dænlɪŋgwÉ™l - but then no one would be able to ping me :P
 
hmm funny :D
stackoverflow seems to have instant feed to google :P
I google searched dænlɪŋgwÉ™l and got the chat excerpt :P
ah nope :P
it was from 9-29 :D:D
haha
oh well today is 10-29
 
1:03 PM
If Google was indexing our conversation in real-time, I'd be worried
 
me too
 
I think they index the main site very quickly, though. I recall seeing hours-old SO posts in a Google search.
 
I think I've seen < 1 hour.
 
@AnttiHaapala yes, I've mentioned it before :P
 
I'm pretty sure I've gone to answer a new question, have typed the error into Google, and then got back the same bloody question I was trying to answer.
 
1:06 PM
@Ffisegydd haha
 
Haha. I think that's happened to me too, except I search for the code to see if they plagiarized it
"Closing this post as a dupe of itself"
 
well... just edit the question :d
 
"Sorry brah but Google told me this is a dupe of another identical looking question. I've edited it for you so it's not closed as a dupe. Thank me later, brah!"
 
@Ffisegydd the recursion answer is the best example of that :)
 
^^^ that's what I need
 
1:11 PM
@majnemɪzdæn I officially hate all crap that exists in google code but not in github
usually a sign of ANCIENT BLACK MAGIC
 
whoa...bold italic...must be serious business. (F*** YOU MARKDOWN!)
 
@AnttiHaapala haha
@Ffisegydd indeed!
 
@AnttiHaapala Google Code is so far behind the VCS UI times it is not funny. Almost as bad as SourceForge.
 
indeed, I actually can get something out of google code, but with SF it takes like 30 minutes before I find out how to check out anything or download...
 
I like the github website because I can see a directory of files and I can click on a file and look at the stuff inside the file.
This seems like a fundamental thing for code repositories and it surprises me when any other site makes it harder than that.
 
fun fact: crows have a language consisting of up to 250 unique statements
 
However, most of them are variations of "sod off"
 
Do crows in different parts of the world speak different crow languages? American crow vs Chinese crow?
 
actually yes, that's one thing they noticed. Crows also have a somewhat particular culture to where they live, because they're able to teach each other things
 
is that penny juice real?
 
1:29 PM
Is the language taught by the previous generation of crows, or is it hardwired? Do you think that humans have a hardwired language too? How would we find out? Would we have to raise children in a wordless environment?
 
@Kevin you're talking of universal grammar?
 
Yeah.
 
I think the words they develop tend to work around the dangers of the area. Like in Japan they noticed crows have words for cat, human, hawk, etc to warn of danger to other crows
 
Can the sciencemen replicate these crow words themselves? If they play a tape recording of the crow word for "hawk", will the crows run away?
How feasible is crow-human communication? I have a startup idea where you can chat with local crows.
 
I will learn the language of the crows, then turn them against my foes! Just like Bioshock infinite
 
1:37 PM
@majnemɪzdæn My EYES! GIVE ME BACK MY EYES!
 
@MartijnPieters muahaha
 
@MartijnPieters ',u rurd hobr ,r nsvk ,u rurd"' what does that mean? Oh you must have misplaced your fingers while writing, can't you see anything?
 
@Kevin @AnttiHaapala good ol' Chomsky
 
lambda calculus is the universal grammar.
 
1:41 PM
I suspect mankind has at least a small universal language. "arrrgh" meaning "I'm in pain or distress", "mulph" meaning "I'm about to vomit", etc etc. But then there's a gray area about whether "mulph" is attempting to communicate any meaning, or if it's just air being displaced from your esophagus.
 
actually different languages have been known to have different "pause" sounds. Eg, a native English speaker says "ummm", a native French speaker says "euur" and a native Japanese speaker would say "eto" or "eta"
 
@AnttiHaapala pretty much
 
@AnttiHaapala I can blind type, and it is hard to misplace your fingers on this thing:
 
and your native language also tends to determine the resting position of your tongue. English speakers rest their tongue higher
 
@corvid Yes, but does their vomit sound any different?
 
1:46 PM
@corvid in fact, old spy manuals exploited this, i.e. step on suspected agent's foot and find out what sound they make instinctively
 
finns say ööööööööööööööö
 
Finnish people have interesting accents, it always seems so out of place with the geographical region
 
howso?
bc finnish is out of place with the geographical region
 
dunno, just never pick up on that one accurately, and some of my family is from Finland
 
@MartijnPieters I was looking at that one, but ended up getting this:
 
2:12 PM
cbg
 
cbg
 
DSM
Cabbage to all.
 
cbg..
 
Something came up on QI about babies cry differently depending on the language of their environment
 
I don't get this... When an integer n is divided by 15, the remainder is 3. What is the remainder when 10c is divided by 15?
 
2:15 PM
what is this an algebraic expression or some logical or something else?
 
DSM
@corvid: is c supposed to be n there?
 
Looks like a typo is all
 
@DSM therein lies the problem
 
rbrb ya'll
 
DSM
@corvid: I'm with QC; assume it's a typo and solve as such.
 
2:19 PM
@davidism And what is that when it is at home?
My Advantage Pro is now about 8 or 9 years old.
It has served me very well.
 
so then n = 15c + 3, how would I do 10n? 10n = 10(15c + 3)? That doesn't make sense
 
DSM
I'm thinking that the question is more like n % 15 == 3; x = (10*n) % 15; what is x?
 
@MartijnPieters can't figure out what that sentence means
 
DSM
(Assuming that n was meant to be c.)
 
I have no idea how to do algebra with a modulus
 
2:21 PM
It's a Truly Ergonomic, I've had it for a year now.
 
Umm... just clicked on an answer that seems to have been upvoted, quite weird to see this:
@DSM wow! Well, with 20k on the clock you've come a long way since then! — Jon Clements Nov 3 '12 at 21:30
 
DSM
@corvid: if you're not comfortable with modular arithmetic you can always expand it to a more traditional equation. n % 15 == 3 is n = 15 * a + 3 for some integer a. So then (10*n) == 150 * a + 30.
@Jon: ah, nostalgia. :-)
 
@davidism E.g. what is it called. :-P
 
yeah had that too. Just a bit lost from there. Divide by 10 on both sides...? That doesn't make sense
 
Also, mine does Dvorak, native.
It has the Dvorak keys printed next to the Qwerty layout, and you can switch.
 
2:25 PM
one of the guys at my office has one of those and uses dvorak
someday I'll learn :)
it can be re-programmed, but I'd have to get custom printed keys to see the dvorak positions
 
@davidism My laptop keyboard doesn't have Dvorak pre-printed.
I learned with a printed out layout next to the keyboard. It forces you to find the keys properly real fast if not printed on the keys themselves. :-)
 
What the heck: django.core.exceptions.ImproperlyConfigured: The TEMPLATE_DIRS setting must be a tuple. Please fix your settings
 
DSM
@corvid: it makes sense, but it may not help. But if you want to know the remainder after division by 15, try to put it in the form 15*(some integer)+rem. The product of 15 and anything obviously has zero remainder after division by 15, so the other term is the number you're looking for. (This is much easier if you think in terms of modular arithmetic because then you can just think about (150*a) % 15 + (30 % 15), but anyway.)
 
TEMPLATE_DIRS = (
    os.path.join(ROOT, "templates"),
)
So that's obviously not the one it's picking up... sighs
 
print(type(TEMPLATE_DIRS))
 
2:30 PM
It's so frustrating picking up someone else's work :(
 
picking up other people's work isn't too bad, it's interesting to see new perspectives
 
Yes... but I seem to pick up work by individuals whose perspective appears to be shaped by hallucinogens and alcohol...
 
Hello all. I just need help here. I have django project runnning on google compute engine. I just want to integrate with google cloud storage. I searched lot but not helped me that much .. Pls help me
 
2:47 PM
@JonClements wait why are you working on my projects?
 
@corvid to try and repent for sins in previous lives... (presumably quite a lot of 'em) :p
 
A fate I wish on no man
 
or puppy? :)
 
nah, I'd wish that fate on a puppy
 
Awww.... you nasty Crow! :(
 
2:56 PM
@corvid .. like that
 
so whatcha gotta work on, Jon?
 
Just moving a Django project elsewhere and adding a few bits
 

« first day (1474 days earlier)      last day (3467 days later) »