« first day (1606 days earlier)      last day (3339 days later) » 
01:00 - 16:0016:00 - 00:00

1:17 AM
Okay, spent a hell lot of time figuring this out. If anyone interested to know how Node.js processes Modules internally, check this answer
 
 
1 hour later…
2:34 AM
And made that as a separate question with the help of Bergi :-)
4
Q: Why does a module level return statement work in Node.js?

thefourtheyeWhen I was answering another question I came across a Node.js module with a top-level return statement. For example: console.log("Trying to reach"); return; console.log("dead code"); This works without any errors and prints: Trying to reach in the standard output but not "dead code" - the r...

And Python's module level return statements work fine as expected.
7
Q: Python: why is `return` not allowed in a module

AlbertIf you look at the Python bytecode compiled from modules, you'll see at the end: 10 LOAD_CONST 0 (None) 13 RETURN_VALUE I.e. a return is perfectly valid at the root level of a module. However, if you try to use it in the source code, you get: SyntaxError: 'return' outsid...

 
 
3 hours later…
5:46 AM
cbg
 
6:05 AM
cbg
 
6:20 AM
cbg all
anyone awake in these parts?
 
I am here thala :)
 
one sec
@thefourtheye: I have a text file with the contents of a book, and an mp3 of that book being read aloud
The idea is that someone can "read along" with the audio
I'd therefore like to display the text "karaoke style", highlighting each word as it is said in the audiobook
To that end, is there some audio analysis tool in Python that I can take advantage of?
 
6:37 AM
I have no idea thala... :(
Cabbage @RobertGrant :-)
 
seri thala. Thanks for trying
rhubarb
 
Cbg
 
@inspectorG4dget rbrb thala
Cbg @61612 :-)
 
7:10 AM
@inspectorG4dget Maybe you can make some dict describing what word is being said at any particular time? This will be how subtitles work. Only that the dict will have to be created manually.
 
7:33 AM
cbg folks!
@Jerry Long time no see, how are you?
 
I'm good thanks. And indeed long time :)
How have you been doing?
 
@GamesBrainiac Cabbage :-)
 
@thefourtheye Heya!
@Jerry Doing well, right now preparing for pycon. wbu?
 
These days you are not even seen in GTalk. What happened man?
 
@thefourtheye I don't see you either, you seem offline :P
 
7:35 AM
pycon? python convention?
 
@thefourtheye You are offline right ow :P
@Jerry Yea, the one in Montreal, I have a talk there.
 
he he he... I hardly visit GTalk :D
 
oh hehe, that's nice. I didn't know there were such things
been working, not much changed since last time
 
@thefourtheye haha. Atr you skype much? I can add you there.
@Jerry There are, and not only in Montreal but all over the world. Yea, work work work :P
 
@GamesBrainiac Hey awesome ;-) What are you going to talk about? (Obviously Python, Duh...)
 
7:37 AM
@thefourtheye Community Based Learning: us.pycon.org/2015/events/edusummit/schedule
 
@AvinashRaj meet @Jerry, the RegEx master.
 
Going to talk about how I learned what I know from the community I was a part of.
I think having a strong community is better than having "prestigious" institutions.
 
@GamesBrainiac Hey, that was my idea... I was thinking about doing the same in PyCon India. BTW, when I say community, I mean SO :D
 
@AvinashRaj.. am not able to post it a question as my limit is over..
 
@thefourtheye haha! I don't necessarity mean so, but that is a big part of the talk.
@thefourtheye Lets talk sometime about it on Skype if you have the time.
 
7:40 AM
@GamesBrainiac I screwed up my Skype in my machine :( I ll ping you over the weekend man. Lets talk in GTalk, if my Skype is not ready.
 
@thefourtheye Sure man, np :D
 
@AvinashRaj can i have ur email ID so that i will can explain it better there..
 
@thefourtheye yep, i know him before you :-)
@PavanChakravarthy why? i'll create a new room here.
 
You know, I think I don't endorse using IDEs anymore for beginners.
I think its best to start with simple tools and get used to the command line, instead of thinking that pressing the "run" button does everything.
 
OMG, i don't know how to create a new room :(
oh, it's at the bottom.
 
7:47 AM
@GamesBrainiac I was asked to do something at work with maven. I said, "Sure, what is the command line parameter for Compiling?" And then, there was absolute silence.
 
@thefourtheye Yea, I've seen that too. The Java world is so IDE based that it scares the shit outta me. But consider yourself lucky that its maven, SBT is a TOTAL pain in the ass.
 
Believe it or not, it takes SBT around 10 minutes just to set up my project from the command line @thefourtheye
 
did you receive the notification?
@PavanChakravarthy
 
@AvinashRaj.. same problem here.. dont know to create a new room.?
@AvinashRaj Nope
 
7:49 AM
i had created..
get into this ^^^
 
cbg
 
@GamesBrainiac May be this is one of the reasons why I hate JVM based languages
 
@thefourtheye But the JVM is hard to ignore with so many good libraries. Its a pain, but often the JVM or Java based languages are the best choice for what you're trying to do. Writing python code, and replacing parts with .so extensions can become tedious very fast.
 
Also, compiled bytecode is forward compatible, so no crap like the Python 2->3 fiasco
 
7:54 AM
@RobertGrant Thats correct for Java, but not for Scala.
For example, Scala 2.11 will give you different bytecode from 2.10
 
But if you compile something in 2.10, will it run in 2.11?
I mean will the compiled code still work?
 
@RobertGrant To think about it, if you have a .pyc file created with Python 2, it would still be working in 3 also, right? Because there are no new OP codes introduced in 3, right?
 
@RobertGrant Nope.
Compiled code from 2.10 will not work with 2.11.
 
@GamesBrainiac fair enough, that's weird. Compiled as in it's now a jar file or something?
 
@RobertGrant Yup.
 
7:56 AM
Fair enough.
 
You need to make sure that the jar used the scala version that you are using right now.
Thats why a lot of people are still on 2.6
 
There must be some weird mechanism happening to make that the case
@thefourtheye are you saying there's no issue upgrading from 2 to 3 because all the libraries still work?
 
You can check it up, I think Odersky talked about it sometime.
@thefourtheye pyc files do not contain the libraries that you use.
 
Hmmm, I was very wrong... Well, atleast I started thinking about it :-)
 
@RobertGrant Hows life? Faced any deadlocks lately?
 
8:00 AM
Haha no :)
Doing some new system design, which is nice
Need to top up the requirements hopper for my devs to munch on
 
@RobertGrant I haven't done anything as ambitious as system design, if you have the time, I'd like to know how you go about estimating the requirements and then eventually implementing the facets of the system.
 
Well it's not a huge system :) but yeah I'd be happy to let you know how I do it. If you go on something like a Scrum course they'll also give you a bit of an idea
But don't forget that fixed timelines can easily leave the customer unhappy, because it'll always turn out that the stuff they really wanted wasn't the stuff they asked for, and if you hold them to a change process they may get fed up with you
Much better to work for a customer who prefers an iterative, frequent-feedback approach to development
 
Hmm, I see. Thats how I usually go about developing things.
 
Which one? :)
 
@RobertGrant Small iterative developments.
But even that has two stages. First is a quick prototype, then is the real thing.
 
8:11 AM
Yeah, that's the way to go if you can
 
Yea, there's not always time for two stages of dev.
 
8:22 AM
cbg
 
9:03 AM
hi
i was going through this
44
Q: How do you access an authenticated Google App Engine service from a (non-web) python client?

dalelaneI have a Google App Engine app - http://mylovelyapp.appspot.com/ It has a page - mylovelypage For the moment, the page just does self.response.out.write('OK') If I run the following Python at my computer: import urllib2 f = urllib2.urlopen("http://mylovelyapp.appspot.com/mylovelypage") s = f.r...

what I'm interested in is the comment by Nick Johnson where he talks about providing a cookie to have authentication on devserver
can someone elaborate/help me with that ?
thanks in advance
its a comment on Dalelane's self answer
 
Hey up
 
9:20 AM
Cabbage!
 
9:35 AM
train cbg
 
choo choo
 
9:57 AM
office cbg
 
 
10:16 AM
I don't know what this is, but it's amazing
 
cbg all :)
 
why oh why
 
10:33 AM
roomba does not work at all ??
i find all the time closed 2 yr old questions that are not deleted
00000000
0000000
 
10:50 AM
@AnttiHaapala examples?
 
have some answers at 0
where exactly can I find the algorithm that is supposed to work?
it is really hard to search meta on what is it currently supposed to do
 
@AnttiHaapala do those answers have both upvotes and downvotes?
Or is there more than one answer?
 
has no answers with a score > 0
has no accepted answer
this one
so I guess it is "and"
so if a question has an accepted answer it is preserved forever
 
133
Q: Enable automatic deletion of old, unanswered zero-score questions after a year?

Jeff AtwoodRelated to meta.su efforts: Old unanswered inactive questions with low views/votes and meta.sf efforts: Cleaning house, really old, unloved questions We already auto-remove negatively voted unanswered old questions automatically after 30 days, network wide, with no human intervention required...

@AnttiHaapala If the question is bad enough, vote to delete it.
 
10:54 AM
You can also downvote the answers if they are bad enough.
Bringing the score of answers to 0 or lower as well as the question being at 0 or below can also help.
 
ah this last one actually has good answers, just wondering
 
But yeah, if an answer was marked accepted it is exempt from the roomba.
 
nope, it does not help if there is an accepted answer
there are lots of stuff like the only answer is "LMGIFY"
and accepted
dunno :D maybe I should build a bot to find lowq questions for manual filtering
 
@Martijn almost there!
I've got a box of goodies standing by to clog your mailbox; just say the word. Well, say the letter. Letter(s). Depending on your size. T-shirt size, that is. Which I need.
 
10:57 AM
@JonClements \o/!
You did give them the letter(s) now, right?
 
Hello. I deal with images in OpenCV + Python. If I have a picture of 100*100. Then I represent it in 50x50 : does this lead to loose some pixels in it ?
 
@Martijn yup - Abby's dealing with it
 
Yes. No. Maybe. Without giving any details all three of those answers are all correct. Maybe you should ask a question on the main site instead.
 
OMG. I'm so sorry, but I have to add another kink to this... uh... swag-hose... ? Bad metaphor, but here we are: I don't find your t-shirt size in this email thread anywhere. (My first instinct was just to send you one of every single size of t-shirt we have, but I worried that would be more of a nuisance than a delightful surprise for you.) - was her first paragraph of the email :p
 
You should have gone for that and then shared the wealth :P
 
11:03 AM
Dammit... I should have gone - one of every size is silly, can I just get 3 M's and 2 L's pls? :p
 
cbg
 
If I say,
>>> 1/3 == 0.333333333333333
False
>>> 1/3 == 0.3333333333333333
True
>>>
 
== returns true only if it finds an exact match.
 
As per floating point repre, we have 52 bits to represent fraction
 
11:19 AM
@thefourtheye I'm wondering if those should be closed as a dupe that shows the diff between a = b, and a = b or similar... I've seen it come up a few times now...
 
@JonClements Ya, that would be better. Do we have a good target?
 
There was one about a django settings file with a trailing , a while back... but something way more general would be good
 
Ya... Let me search for sometime...
 
That's still a bit specific.
 
Too complicated - something with 3/4 lines will do it :)
I think that'll do as a Q?
 
11:27 AM
@JonClements Won't "trailing comma" in title make it easy to search?
 
Yup - edit away
 
@Jon you're missing the trailing comma :P
 
The body of it doesn't mention a trailing comma?
 
@Ffisegydd oh the irony :)
 
2
Q: Why does adding a trailing comma after a string make it a tuple?

AvadheshI want to know that why adding a trailing comma after a string makes it tuple. I.e. abc = 'mystring', print abc # ('mystring,) When I print abc it returns a tuple like ('mystring',).

 
11:28 AM
Ah that'll do
 
That's nice... let's go with that
 
I already CVed that question :( Puppy, hammer it?
 
Too late - closed as OT
 
Done.
 
11:31 AM
Voted
Except it's the dumbass dupe version, where the OP doesn't even recognise what caused the problem
 
I shall add that dupe to the canon list.
 
I've also edited the target slightly to say "trailing comma after a variable name" - so it's even more generic
 
Lol, OP would be confused for sure... A moment ago, it was typo reason and suddenly it is a dup... :D
 
Just writing a MWE for the list
 
@JonClements But the actual code in the question...
 
11:38 AM
I've changed the body to also say "after a variable name (in this case a string)"
instead of just string... so I think it's fine
 
Well you could have added another code sample including a variable no?
 
@thefourtheye well... a string is a variable isn't it? :p
 
11:44 AM
@Ffisegydd @thefourtheye good job team :p
 
Yay :-) Lets do the Sprinkler dance... :-)
@JonClements Your git settings doesn't have the email address registered with Github :(
 
Oh...?
 
Your primary Github address is not jon[at]sopython[dot]com, right?
 
nope... forgot I'd set global settings for work stuff... didn't over-ride them for sopython-site... good spot pups :)
 
11:52 AM
Ahhh... and haven't finished setting up the email server on sopython yet... so can't verify it... bah, will get around to it at some point
 
12:05 PM
48
A: setting an environment variable in virtualenv

Kenneth ReitzI wrote autoenv to do exactly this: https://github.com/kennethreitz/autoenv

If we flag that, it will get rejected :(
 
and the answer is accepted. I don't think mods would be able to do much about it.
 
yup :'( and the user is also not active.
 
If a=1/3 I would like to see the bit pattern stored as 64 bits for a.
How do I do that?
Because here is my understanding...
here is my understanding of `1/3` in floating repre in 64 bit
`0.0101010101010101010101010101010101010101010101010101` am exactly taking here `52` bits
`1.01010101010101010101010101010101010101010101010101 x 2 pow(-2)`
exponent is 1024 -2 = 1022 = `01111111101`
sign is `0`
mantissa is `0101010101010101010101010101010101010101010101010100`
Is my understanding correct?
I want to confirm this by reading all 64 bits
 
12:24 PM
@overexchange have you asked this on Stack Overflow?
 
1
Q: Interpretation of '1/3' in IEEE floating point representation

overexchangeFor a rational number 1/3 below is the floating point representation(64 bit) of decimal expansion 0.3333333.... As per the above bit structure, I would like to interpret the value of exponent(11 bits) and value of fraction(52 bits). exponent has 11 bits. How do I interpret exponent value? ...

 
12:46 PM
kafka.apache.org looks interesting re. Kesh
 
Yeah it does; haven't heard of that
 
morning everyone
 
Morning sunshine.
I do love Apache. So many pretty toys.
I wish I had more time to learn/play with them all.
 
I like apache too. Geronimo was cool
 
1:01 PM
(;¬_¬)
 
terrible jokes. It's what I am reading about currently though
 
And now I'm on the "angry japanese emoticons" page and stuck here forever laughing at them.
 
╰༼=ಠਊಠ=༽╯
 
((╬ಠิ﹏ಠิ))
 
1:05 PM
my face every day (૭ ◉༬◉)૭⁾⁾⁾⁾
 
ヾ(o✪‿✪o)シ
 
ʕ•͡ᴥ•ʔ
 
ಠಿ ˑ̫ ಠಿ
 
1:20 PM
lot of interesting programming subjects here, i guess
 
@Kabyle yep
 
most of my questions are just "how do I make javascript python?"
 
i like programming with fun..
 
@corvid brython :)
 
Or coffeescript.
 
1:25 PM
@RobertGrant I looked into that... I'm kinda in the weird space between javascript and python where I am sometimes better at one than the other though
but python is generally 100x easier to debug imo
 
I'd just keep using both if you can. ES6 is apparently much better than previous ones
 
one thing I'd really like to see in python is the ability to define functions inline that are more that one line... I actually use that functionality (no pun intended) a decent amount
 
@corvid be careful, or people will start accusing of wanting to use Ruby :)
And you need to be careful, because those people are crazy
 
@RobertGrant honestly I just think I am doing python wrong hah, doesn't seem like python's "style" to do that
events = {
  "login": login
}
App.on(event, events.get(event)())
 
2:10 PM
I honestly don't get what the Russian agenda is in doing flybys of the UK
Are all the Russian citizens really that wealthy and well-looked after that there's enough spare cash to do that sort of thing?
 
so this just came up on my radio station
 
Off topic: anyone know of a javascript-based library that can nicely render an attribute tree and let the user modify the attributes? For example, the JSON object {"foo": "bar", "baz": {"frob": 23, "troz": [4.2, False, 100]}} would look like
Data
├ foo - [text box containing "bar"]
└ baz
  ├ frob - [text box containing "23"]
  └ troz
    ├ 0 - [text box containing "4.2"
    ├ 1 - [dropdown containing True/False with False selected]
    └ 2 - [text box containing "100"
Ideally with nice expand/collapse behavior for each item that has children items.
... Or do I have to make all this myself :-I
 
@Kevin like... in terminal or where?
 
In the browser.
 
Browser console, or on the rendered area?
 
2:25 PM
Rendered area. I would like the end-user to manipulate these values without requiring any dev tools or what have you
 
Spent the past hour or so reading about Apache Kafka, I think it could be a really good idea for Nidaba/Kesh.
Could have a Producer that listens to websockets and sends the message to Kafka. Then have Nidaba be a Consumer/Producer that consumes new questions and sends the results back as a producer.
 
@Kevin I've used this library once before and it's pretty good
had to look in my old projects to find that
 
Doesn't have editable values but it may be of use to me anyway. Thanks :-)
 
403 helpful flags
 
huehuehue
 
2:40 PM
0
A: how do I login to web server directly

JakeGouldWhat have you tried to do? Can you login via root using SSH like this: ssh root@abcd-web02

tagged the answer there as "NAA" got declined :D
anw
 
DSM
Morning cabbage for all.
 
evening
stackoverflow.com/a/11419611/918959 naa'd this too and was declined
obviously it is an answer
-1
A: Can't get extra values from Intent

Naresh RDid you try intent.getStringExtra("c"); ? What did it return?

also this is obviously a partial answer
was declined NAA there too
 
when I get to 500 I will stop being the janitor
damnit
lazy mods
all kinds of questions are now answers
 
DSM
@davidism: does trello use markdown for links?
 
2:47 PM
yeah
 
DSM
Much obliged.
 
@AnttiHaapala: when flagging upvoted 'answers' I use other to make sure the moderators are paying attention.
 
hmm noted :D
@MartijnPieters I did remove lots of link only answers, it is amazing how many votes they get
"How do I use the class NSFoobar"
answer: "http://www.google.com/search?q=NSFoobar+usage&asdklfjasldkfjaslkdfjaslkdfjasldk‌​fjasdklfjasdf"
+3, accepted.
these were posted in 2009
 
Of all the types of questions on the "heroku/aws doesn't work" category is my least favorite. And it seems to be popping up more and more lately.
 
@davidism it's mostly just annoying that people don't set up a logger for heroku before posting the question, which just makes it "I tried to heroku, but no heroku. What do?"
 
2:55 PM
Waaaaaay too broad. And probably a repost; I'm pretty sure I saw a question like it earlier today.
 
@Martijn That’s why I don’t think we should instantly delete closed questions like that.
 
DSM
I kind of wish we could search deleted questions for modlike purposes.
 
I wish the deleted answers would be hideable by default :D
is there any user script
 
@AnttiHaapala User CSS: .deleted-answer { display: none; }
 
maybe I'd like to see a 20px strip that'd tell the poster, score, deleter...
though that could work too mhmhm
 
DSM
3:13 PM
Yet another example of people being interested in the details of how CPython treats objects. If we removed id (or, more realistically, buried it somewhere), I'm not sure what we'd lose.
 
@poke see the bottom of sopython.com/wiki/cv-pls for my thoughts on what deserves deleting.
 
there are lots of questions that would receive delv from roomba, but op accepts some answer or there is 1 random upvote from op...
sympathy voting
 
dumb mongodb :| making things so needlessly complicated
 
but yeah, in general should not be hasty about it
@corvid now you know :D
 
I suggested reading the "what's new" documents, but I wonder if that's really a practical way to get a thorough understanding of 3's new features.
They make for pretty dry reading, if you go past the "release highlights" section
 
DSM
3:31 PM
What's the current policy on questions which would once have been too localized? (The OP didn't follow the spec, which puts all numbers on one line.)
 
@DSM Unclear
 
DSM
.. but it's not unclear, though. I know what he's asking, his problem is reproducible, etc.
 
I have no idea what he's asking.
 
DSM
I guess we can say it's unclear because it's not self-contained: you have to click through to see why it's failing. Okay, I'll buy that.
Should I give the one-line answer in a comment?
 
I think the "typo" reason is probably most appropriate, as it also includes "resolved in a manner unlikely to help future readers", which is basically "too localized"
 
3:40 PM
unclear at 4
0
Q: Python 3 compatibility issue

Wael BEN ZIDDescription of problem I have to migrate some code to Python 3. The compilation terminated with success. But I have a problem on the runtime: static PyObject* Parser_read(PyObject * const self, PyObject * unused0, PyObject * unused1) { //Retrieve bytes from the underlying data stream. ...

yet another XY problem I guess
 
hah after i answered that question about opening the file explorer in windows (for wxPython O.o) ... he asked for the equivelent osx command ...
it took all of one google search + i feel lucky
 
are people really just that bad at google?
 
I recommend purchasing a computer and installing python on it – corvid 43 mins ago
 
Sound advice.
 
3:50 PM
why do ppl ask so much and do so little
 
I'm pretty sure that people are really just that bad at google.
 
It's likely that you, the person reading this sentence, are a google wiz, and so are all of your peers. So it's astonishing when we encounter a non-wiz.
But I suspect they're quite common outside of social circles that hang out in chat rooms.
 
Thought experiment. If the world were 100 people, how many would have google search skills?
and/or Baidu skills. Don't want to exclude a third of the population just because of their firewall settings.
 
DSM
3:58 PM
I think I mentioned once that on a trip to Beijing I kept trying to access the website of the Vatican, images of Tiananmen square, and information on Falun Gong. After a few tries they disabled web access for about fifteen minutes.
 
Hi all, I just failed a LQ review audit because I clicked Looks OK on a deleted answer. However, since I'm well below 10k I can't see the answer anymore. Could someone with enough rep take a quick look at it and tell my why this answer should be deleted?
It's not really a big deal since it's my first failed audit, but I'd just like to know where I went wrong. In the light of this meta question, I viewed the answer as being wrong but sincerely trying to help so it should be downvoted but not deleted. I do recall it having some sort of software recommendation, was that spam maybe?
 
01:00 - 16:0016:00 - 00:00

« first day (1606 days earlier)      last day (3339 days later) »