« first day (1650 days earlier)      last day (3298 days later) » 

user4433485
11:00 AM
in the meanwhile, I only go to school for couple hours/day
 
Ahh... the Mayor of Tower Hamlets has been unseated and banned from public office after being found guilty of corrupt electoral practices...
 
Hello
 
@MartijnPieters what were limits of int
in python 2, was it implementation specified
 
heya @Aamirkhan
@AnttiHaapala it'd have been whatever sys.maxint was
 
yeah, I am polyglotting the stupid pika library
the folks there said "it is very difficult if not impossible to support Python 2.6+ and Python 3 in same codebase"
 
11:11 AM
Uh oh
 
@JonClements how are you?
 
@Aamirkhan good thanks... yourself?
 
@JonClements i am good
:
:)
 
user4433485
@Aamirkhan why do you invite me to join ? what is it?
 
user4433485
How comes I got invited in chats everyday ? Yesterday I've got invited into a chat named "Persians only"
 
11:14 AM
@Katherina oh! it was by mistake ignore it
 
I will start porting all the moduels from python 2 to python 3
then I will send invoices to the authors :D
 
user4433485
@Aamirkhan Ah ok;)
 
am not able to play video in ios devices ,i have generated video url via webservice created by using django rest framework
any one up here have any idea what the issue is?
 
@Katherina and why are the groups named so racistly? :)
 
11:16 AM
cbg @Games!
 
user4433485
@RobertGrant Well indeed and I could not understand a single word of what they said, why the hell bother to invite me ?:p
 
@Katherina you might wish to consider flagging such rooms - they're not suitable for SO
 
Ago
I open a socket and want to read from it for several times. it works on my laptop. when I put the same code into server, I get socket error as the connection would be closed by the other side. why is that? and what should I change in order to make it run in the server?
 
user4433485
is that possible @JonClements
 
@AnttiHaapala you mean the Python 2 not long int?
sys.maxint, which is platform dependant.
 
11:19 AM
If the room's not on topic/you feel you're being harassed, then flag one of the room owners of that room (or the person that invited you), and explain it's not in english, off-topic and whatever... then a mod can look into it...
 
But the whole int/long distinction was artificial anyway, except when you needed to pass the value to a C API that only supports C integers.
 
@JonClements @Katherina I don't see any room called "Persians only" ... there's a "Persian Chat" and "Persian Programming Discussion", neither of which seem problematic to me.
 
user4433485
@ZeroPiraeus I didn't said it was problematic I just don't get it why they invite me there :p
 
Well yes, that's a bit weird.
 
@Katherina fair enough... just ignore invites then :p
as long as they're not overly intrusive etc.... then don't worry about it
 
user4433485
11:22 AM
Okay:))
 
(don't forget you always have the ignore option for users as well)
 
@MartijnPieters so pika is broken as designed
 
user4433485
@JonClements I don't ignore people, that's mean :p
 
ahh well... if it's designed that way - it's not broken? :p
 
@MartijnPieters pika is using UUID.get_hex() which is not even documented :D
 
11:29 AM
@AnttiHaapala hex = property(get_hex), with UUID.hex documented.
 
yes
I checked 2.5 docs, wasn't documented in 2.5 either
 
holdover from when property was not yet a decorator (e.g. before Python had decorators).
 
so guys just test "oh this happens to work"
 
user4433485
That blue,
 
not either, uuid came in 2.5
 
user4433485
11:31 AM
Martijn == Eiffel 65
 
@AnttiHaapala right, but the codebase may have predated inclusion in the stdlib.
 
true
decorators came in 2.4
@MartijnPieters this code seems to assume that all ints fit in >i of struct
 
@JonClements I can see the Private Eye column already...
 
@AnttiHaapala the uuid module? Well, the documentation tells you what ranges (or rather, byte lengths) are acceptable.
 
no, pika
it specifically marshals int to 4 bytes and long to 8 bytes
elif isinstance(value, int):
    pieces.append(struct.pack('>ci', 'I', value))
    return 5
elif isinstance(value, long):
    pieces.append(struct.pack('>cq', 'l', value))
    return 9
that's sooo wrong
 
user4433485
11:41 AM
Oops
 
user4433485
Teacher is going mad
 
user4433485
" What exactly is wrong about PHP Katherine ? "
 
@Katherina tell the teacher to come to sopython room :P
@MartijnPieters see the code above :P
 
@Katherina The fact that its an overgrown templating language.
 
>>> type(2 ** 40)
<type 'int'>
>>> struct.pack('>ci', 'I', 2 ** 40)
 
user4433485
11:42 AM
@AnttiHaapala I did :p
 
@Katherina show them the PHP toolbox story! :-P
stir, stir.
 
@RobertGrant yeah, that one. Also see blog.codinghorror.com/the-php-singularity
 
user4433485
=DD
 
user4433485
Well I won't tell him that, he is going mad for some reason
 
11:44 AM
> PHP isn't so much a language as a random collection of arbitrary stuff, a virtual explosion at the keyword and function factory.
> So here's my problem, based on my limited experience with PHP (deploying a couple of free apps to do this and that, and debugging a site for a non-technical friend here and there): all the PHP code I've seen in that experience has been messy, unmaintainable crap. Spaghetti SQL wrapped in spaghetti PHP wrapped in spaghetti HTML, replicated in slightly-varying form in dozens of places.
Which meshes with my experience.
 
lol "And, yes, out of frustration with the status quo I may have recently referred to Rasmus Lerdorf, the father of PHP, as history's greatest monster."
 
@Katherina if php was a gun... youtube.com/watch?v=C9_YWNo1f-o
 
user4433485
Lmao
 
user4433485
Checking
 
He may be going mad because you're in a chat room while, presumably, in a lecture...
 
user4433485
11:48 AM
No not really
 
user4433485
Someone said that php was not programming
 
user4433485
and I only said "I agree"
 
I don't know if you are in a lecture or not (I presumed you were as you were talking to a teacher) but if I were your lecturer and I'd found you talking in a chat room I'd have thrown you out.
:p
 
Ah, the classic softening trailing smiley
:)
 
user4433485
@Ffisegydd Atleast, I am not playing games like Counterstrike :p
 
11:51 AM
Classic :p
 
Ah, there's the moving van parked outside as the new moderators move in! Welcome aboard, everyone! http://t.co/MExTsAURfO
 
cbg
 
phew... think I've had a lucky escape :p
 
Who locked up Candy?
 
@Ffisegydd ehh
 
11:55 AM
@Katherina Sadly, long-term exposure to PHP can cause permanent brain damage. ;-)
 
@Ffisegydd Given that it's apparently a PHP lecture, a Churchillian "If I were your husband, I'd drink it" style response might be appropriate ;-)
 
@AnttiHaapala What do you expect from people that eat dirt? :)
 
@poke no ehh about it as far as I'm concerned. I've taught undergrads as part of my PhD and if they don't want to do pay full attention then they can leave and I can focus on those who do care. I once had a student who decided to answer a text while I was explaining something to him. He only did it once though... never again :p
 
user4433485
@PM2Ring hahaa =DD
 
@Ffisegydd oh - is that the one that's still locked up in the dungeons?
 
11:58 AM
@Katherina "How comes I got invited in chats everyday ?" Could be something to do with your name and your avatar...
 
Cool idea for wording on a t-shirt? "Eat shirt and die"
 
Ffisegydd doesn't need to actively punish those who reject his Light. To be left alone in the darkness is enough.
 
user4433485
@PM2Ring Why?
 
@RobertGrant I like it. It reminds me of this ancient ditty - Who Threw the Overalls in Mrs. Murphy's Chowder
 
user4433485
Tadaa, Kicked out :D
 
user4433485
12:01 PM
Ah well Time to go home =)
 
@Katherina You may have noticed that there aren't many women here. And if the photo in your avatar is you, you are rather attractive.
 
user4433485
Hmm maybe, Ah well :) I guess I can simply ignore the invites
 
BTW, I'm not trying to hit on you - I'm probably older than your parents. :)
@Katherina Wise move.
 
I feel a twinge of pity for this OP because he's forced to use a library that uses type(thing) == type([]) instead of something more sensible like isinstance(thing, collections.Iterable) or just trying to iterate.
 
user4433485
@PM2Ring Don't worry :)
 
12:04 PM
@Katherina I won't worry. You seem very capable of looking after yourself.
 
@PM2Ring pika is actually a small furry animal, I guess my expectations should be even lower
 
@AnttiHaapala Yeah, I know it's an animal. But I couldn't resist the pika -> pica. :)
 
@MartijnPieters
                   'intval': 1,
                   'longval': long(912598613),
 
@AnttiHaapala I guess so. Small furry animals can be cute. But not known for their intelligence.
 
Pica? The compulsion to eat things that aren't food? What kind of conversation have I missed now?
 
12:06 PM
how useful test
 
user4433485
Be right back! Time to smoke !
 
@PM2Ring Watch some more girl movies :)
 
@AnttiHaapala someone didn't quite understand how int / long works, I guess.
 
@Kevin That's sad. Writing code like that's forgivable when you're a newbie, but people who write libraries ought to know better.
 
Sorry, TV, not movies
 
12:09 PM
@MartijnPieters or then it is used as some kind of api marker, who knows
 
@PM2Ring Going by the .edu host, I'm guessing it was written by a college professor in charge of introductory programming courses. If they're anything like mine were, they don't necessarily teach the language they're proficient in, so little non-idioms sneak in now and then.
Let's creep on the guy's faculty page. AI researcher. So, what, Lisp?
 
so I take that the "very difficult" sentence lacked the "for us"
 
@Kevin It's a good bet - those guys generally love lisp.
 
I see some references to Prolog here.
 
@Kevin Do you have a little time for a side project? I want to make a programming journal CLI kinda thing. A lot like Quiver (Mac OS) but free and works on windows and mac. Can also sync via dropbox.
 
12:13 PM
okay I have a dumb question again... in web application frameworks (say flask), can you make "breadcrumbs" in paths do certain things before the final path? For example:
 
help me in this big problem please: stackoverflow.com/questions/29820528/…
 
@Kevin Fair point. Still, that's not a good excuse to write a crippled library. But I guess lots of people in that position learn just enough Python to get by, so they don't know how to write Pythonically, they just translate the idioms they know & love into Python syntax.
 
Can't tell how old questions are on SE app D:
 
@app.route('/class/<slug>')
def classroom(slug):
  return [x._id for x in Classes.find({ slug: slug })]

@app.route('/class/<slug>/student/<student_id>')
def class_student(slug, student_id):
  ### use the "classes" returned by previous breadcrumb to map this
  classes = ???
  return Students.find(
    { classIds: classes, _id: student_id }
  )
 
@Nakkini Most of us already carefully watch the recent questions page, so re-posting a question here won't get you much more exposure :-) That said, I have an eye on your question and will try to take a look later today.
 
12:16 PM
IIRC, mathematician / sci-fi writer Rudy Rucker once had to teach a programming course in a language he didn't know. So he was learning on the job, keeping roughly a week ahead of the class. :)
 
@GamesBrainiac So some kind of document that intermixes code and formatted text?
Kind of reminds me of my time with MatLab during college
 
@GamesBrainiac Pelican?
 
user4433485
I've got to go :) Cya around !
 
@Kevin Yes, that will be the document format. However, it will be private, syncable, taggable and exportable.
@RobertGrant Yes, the architecture I have in mind is very much like pelican, except its going to be private, like quiver.
Has a web UI, that you can just launch.
 
Oh okay fair enough. I haven't used quiver.
 
12:19 PM
The thing is quiver is a really good idea, since you can note down what you learned in a day, and build up your personal knowledge base bit by bit.
 
Is there a way to make Pelican private?
 
Very handy for someone like me, who still has a ton of things to learn.
 
E.g. don't put it on the web
 
@RobertGrant Yes. Thats why its going to be built on top of pelican, or some other static blog generator.
 
Ah okay
Sounds like a cool idea
 
12:20 PM
Web UI, eh? So we just need to re-implement Python on top of javascript... How hard could it possibly be.
 
Not a lot of work, but I want something like quiver that's cross platform, easy to install and has a web ui, so that you can avoid having to use the command line.
@Kevin hahaha. So, There's pydermonkey, but if web ui is not the best solution, there's kivy.
The bottom line is, you should be able to launch it via cli, but you can use the UI, and it will be a complete abstraction over the CLI.
(thats the plan at least)
 
I have a batch file that runs the Pelican stuff and copies everything to a different dir to be served by github pages
That works quite nicely
I'm sure you can script something similar
 
Yea, so I just use ghp-import
so that creates a separate branch for gh-pages, and just adds the compiled html files.
 
Obv you don't want the ghp bit
I just have 2 repos, 1 public, 1 private :)
But anyway, offtopic for this conversation
 
Yea. So this project is not that hard, but having something can help newbies slowly learn from their mistakes. You never know, it might even help veterans out :)
I know that having a blog myself, helped me get criticism from people and improve both my code and writing.
 
12:24 PM
I'm trying to imagine how the CLI will work. I imagine the web interface would let you execute code snippets with some kind of run button. But you can't have buttons on a command prompt. Would you navigate around the document with a lot of emacs-esque keyboard shortcuts?
 
squints at Kevin
 
@Kevin I think I might've been wrong about the Web UI thing. Lets just say we have a UI, web or otherwise that can abstract over the CLI.
 
(Keep in mind that I've never used Quiver, so I may be misunderstanding how it works)
 
(also the only emacs thing I use is ace jump :P )
@Kevin take a look: happenapps.com
Its built on top of ipython notebook I think.
 
how do I get the exponent of decimal in python 3?
 
12:28 PM
SO should update its writing questions interface :\ writing code here feels inefficient
 
@corvid yea, no ace jump.
 
Decimal().as_tuple().exponent
 
Or just Decimal.exp?
 
I like the SOPython code editor, that's ACE, right?
 
Yeah
 
12:30 PM
@corvid I don't think so, and if it is, then its very much a stripped down version.
 
Woo free wifi!
It is Ace - ace.c9.io
@Zero how close are you to the volcano?
 
@Ffisegydd Not very :-)
 
@AnttiHaapala Did you chose the tuple version or the builtin method exp()?
 
That is both good and bad at the same time.
 
Good: I don't get burnt to a crisp. Bad: No pics. Something like that?
 
12:40 PM
Python newbie here, i'm a web developer. just want to learn python. i'm using kubuntu OS.
Help !!
 
@BigByte Hiya! What exactly do you need help with?
 
@BigByte Hi there! Please read the room rules :)
 
Learning python syntax or web development tools in particular?
 
Have you guys used saxo? It's awesome!
(I don't need help :P)
 
12:43 PM
Ooh, ddg has ads
 
@GamesBrainiac I want to start, rather than searching and searching. i find cool to ask the experts.
web development tools
 
@BigByte Start with "Learn Python The Hard Way" to learn the basics of Python.
 
@GamesBrainiac no one here likes that :)
I'd start with Dive Into Python 3
 
Then you can head over to the django polls tutorial, which will give you a very fast introduction to how web frameworks work in general. docs.djangoproject.com/en/1.8/intro/tutorial01
 
@GamesBrainiac Thanks
I am looking for the tools to start some coding rather than reading. so, i already said i'm using kubuntu os. best way to get python to my system?
 
12:49 PM
Dive Into Python3 should cover that
 
It's already on your system :-)
 
You probably have Python 2 already, but if you're learning, I think you might need to install 3.
 
@RobertGrant Ok then.
 
Open a terminal and type python3 :-)
 
@MartijnPieters even better! pika unittests assume dict ordering :D
this is so fail
 
12:51 PM
@ZeroPiraeus will do. thanks
 
@BigByte try what @ZeroPiraeus said; python3 may Just Work
 
But you'll have to remember to type python3 and not python when you're running stuff, at least to start with
@AnttiHaapala is Pika turning green? :)
 
@RobertGrant its not installed
 
12:53 PM
@BigByte python is already installed on your system if its kubuntu.
 
By the way @BigByte ... you're much better of with the official tutorial than Learn Python The Hard Way. Zed has some, er, unorthodox ideas about good learning practice.
 
they are not helping it though :D
 
@AnttiHaapala cool
@GamesBrainiac python3?
 
@RobertGrant same thing
 
python2 works
 
12:54 PM
I'm reviewing my own question in Triage :/
 
@BigByte which operating system?
 
(audit)
 
Oh, so is python in kubuntu now python3?
@BigByte type python --version
 
@AnttiHaapala Kubuntu
 
Cabbage, Pythonicans
 
12:56 PM
@RobertGrant Python 2.7.3
 
@BigByte old kubuntu
not 14.04 for sure
 
@RobertGrant yes
 
Unless you've removed it, Python 3 should definitely be installed already. If not, sudo apt-get install python3 will install it. Always use python3 unless you have a specific reason not to.
 
install python 3 there
@ZeroPiraeus this must be < 14.04 a lot
 
@RobertGrant Yea python3
 
12:58 PM
@BigByte which ubuntu version is it?
guess 12.04 or so
 
@AnttiHaapala yes 12.04 LTS
Thanks everyone. i will be here again after i started.
 
@ZeroPiraeus Evidence: the weird questions we get on SO from people who are working through "Learn Python The Hard Way".
 
Yep. Also:
> A programmer may try to get you to install Python 3 and learn that. Say, "When all of the Python code on your computer is Python 3, then I'll try to learn it." That should keep them busy for about 10 years. I repeat, do not use Python 3. Python 3 is not used very much, and if you learn Python 2 you can easily learn Python 3 when you need it. If you learn Python 3 then you'll still have to learn Python 2 to get anything done. Just learn Python 2 and ignore people saying Python 3 is the future.
 
Wise words.
 
1:05 PM
Oh dear. I still use Python 2.6.6, but even I agree that such advice is outdated.
 
Which is, of course, nonsense.
 
I really don't understand why people think learning one flavor of Python isn't completely effortless once you've learned the other.
I knew Python 2, I read "Python 3 is similar except print requires parens", and then I knew Python 3.
It's fifteen seconds of reading, not an uncrossable gulf of incompatibilities.
 
It makes sense to release a new major version of python just to have print be a function rather than a statement
 
If only Guido had got it right and made everything be an expression... ;)
 
@TimCastelijns Don't be silly.
 
@Kevin There's a bit more to it than that (and the input vs raw_input thing). Eg, there are lots of things that are lists in Py2 that are iterators in Py3 - sometimes that just affects efficiency, but sometimes it breaks code.
 
@corvid I call your... um... whatever that is, and raise you a garage punk Little Bunny Foo Foo
 
People act as though learning Python 2 after you learn Python 3 is like in the movies where the main character has to recover from some huge physical trauma and they're doing physical therapy and trying to walk using those support bars and they can't do it and they collapse on the ground and they cry and cry and the therapist holds them in their strong yet gentle hands and says "It's OK, we'll get through this"
But it's not like that.
 
@Kevin it is like after having learnt to speak English perfectly, you'd have to learn to speak English but like having a hot potato in your mouth
 
I suspect that going from Py 3 to Py 2 is easier than doing it the other way around, so these days it makes way more sense to learn Py 3 first, and then if you need to maintain or read Py 2 code, read about the differences.
 
1:15 PM
I could go for a hot potato right about now :d
 
@AnttiHaapala Funnily enough, most Chileans speak Spanish as though they had a hot potato in their mouth.
 
ported almost now,
in 3 hours
running acceptance tests
 
Pika needs the love, that's for sure.
 
Do we have any Austrians in the room just now? Or folks who have dealt/"done business" with Austrians in the past?
 
I have been to Austria twice, stopover en route to South Africa, do I qualify? :d
 
1:27 PM
I watched "The Sound of Music" once.
 
Hmm
Probably not then :/
 
I just discovered this post during a search to help on a Tkinter question; I guess Albe didn't respond well to constructive criticism to his answer. He's made one other answer since then, but most of the code's in a comment. I guess I could edit that code into the question myself, since it doesn't appear to have any indentation.
@AnttiHaapala Nice work!
 
DSM
Morning cabbage for all.
 
@IntrepidBrit I'm Australian, is that close enough? :)
 
@PM2Ring some bytes/str confusion remaining
@PM2Ring you should say: "I am Austrian, give or take some letters"
 
1:32 PM
:)
 
DSM
I spent a week in Vienna once for a conference. Loved the visit, but doesn't really qualify me to speak about them.
 
ok :D
I get 18 + 17 errors even with Python 2 :D
 
@PM2Ring So close, yet so far...
@DSM More so than I!
Okay, maybe I should be less cryptic. Someone's given me an agreement to read over, and I would possibly be okay with it - but I suspect that Austrians may find it to be too informal
 
@AnttiHaapala That's not a good sign
 
@PM2Ring the test suite is broken, it tries to run tornado tests even if it should skip them
 
1:35 PM
@IntrepidBrit I guess Poke may be able to help.
 
Do you think poke would mind being poked pinged?
 
the comments on metal videos are probably some of the worst things on the internet
 
I've sometimes said I'd pay extra for a Youtube where children were not allowed to comment. That's not true, I'm too cheap. But the sentiment still stands.
 
I guess it would depend on the Austrians :D
 
You would also have to block all commenters that were born on January 1 1900. Apparently supercentenarians and twelve year olds have similar viewpoints.
 
1:45 PM
Could someone who knows Pandas take a look at the edits I made on this old answer that I mentioned earlier? I don't think I broke anything, but I'd hate to screw up someone else's answer.
 
Very tired Cabbage
 
@corvid The other day you mentioned you like metal bands lead by women. British blues-rock guitarist / vocalist / songwriter Chantel Mcgregor does some metal-ish stuff, eg Walk on Land. It starts slow (a bit like Nothing Else Matters), but it gets rather intense about halfway through.
 
@PM2Ring this is actually really good, thank you good sir
 
@PM2Ring Looks an accurate transcript of what's in the comment. Personal style - I'd flag in the edit that this is code that you've copied from the (potentially volatile) comments. The OP can always remove that bit if they come along and want to endorse the edit, as it were (they were "seen" two hours ago.
 
You are not a proper moderator until someone complains about your actions on Meta (10K+ only).
 
1:58 PM
Ooo Martijin's name is blue now!
 
24
Q: Names of room-owning moderators should be italicized

vaultahThis man is both a moderator (congratulations!) and one of the owners of 'Python' chat room, and this is how his name is displayed there Names of moderators are blue, names of ROs are italicized, thus the names of moderators owning a chat room should be displayed (in that particular chat room)...

Not that I agree though.
 

« first day (1650 days earlier)      last day (3298 days later) »