« first day (1390 days earlier)      last day (3561 days later) » 

3:01 PM
Does anyone feel like trying out some Kaggle competitions as a team? It's basically a big data analytics site with competitions where you get some training and testing data and try to put together a good model. You can enter the competitions as teams of people.
 
ABRAHAM: Do you bite your thumb at us, sir?
SAMPSON: I do bite my thumb, sir.
[Note: OHHHHH SHIIIIIIIIIT it's on now]
 
I'm thinking of messing around with it as a learning exercise, maybe even entering some of the serious competitions (you can even win money if you have top 3 submission)
 
user559633
they have an unfortunate name
 
user559633
i'm interested, but don't have the time @Ffisegydd
 
Gotta do my kaggle exercises. hrnnng
 
3:03 PM
I’m the King of the Castle is a novel written by Susan Hill, originally published in 1970. The French film Je suis le seigneur du château of 1989 and directed by Régis Wargnier is loosely based on the novel. == Plot summary == The book is set in a large house called Warings near the village of Derne. It was once a grand countryside mansion, but has since fallen into disrepair and decay. Joseph Hooper has inherited the house, and lives with his 10 year old son Edmund Hooper. They have a cold, formal relationship which lacks any compassion. Joseph compares it to his relationship with his own Father...
 
Yeah fair enough. I've emailed Games as I think he'll be interested and he isn't on very often so would miss any pings.
 
That's one of the few books I remember from school
 
Might use that pizza data set to learn Vowpal Wabbit
 
@Ffisegydd I'd like to say yes, but I'm barely able to spend as much time as I'd like here :(
Pizza? ears pick up
 
7
Q: Getting correct string length in Python for strings with ANSI color codes

Paul D.I've got some Python code that will automatically print a set of data in a nice column format, including putting in the appropriate ASCII escape sequences to color various pieces of the data for readability. I eventually end up with each line being represented as a list, with each item being a c...

sigh, not a single answer that does not rely on rather big external dependencies..
 
3:07 PM
Data analysis is the exact opposite of problems I find interesting. I like puzzles that have one, and only one, answer, which can be found through careful logical reasoning. "Write an algorithm to detect sincere pizza requests with greater than 7% accuracy" is such a loose requirement, the best answer may well be return random.choice([True, False]).
 
@Kevin boo. Boo sir!
Hiss!
 
@Ffisegydd it's okay... he might change his opinion when he tries different pills tomorrow!
 
Oops, that was somewhat more disparaging of the entire genre than I intended it to be.
I never want to work on such problems as long as I live, but I understand why others might.
If it makes my Netflix recommendations half a percent more accurate, then let the analysis flow!
 
I understood your meaning and didn't take offence but I will boo and hiss nonetheless
Hissssss!
 
ok :-)
 
@Ffisegydd shall we just through cabbages at @Kevin?
 
for some reason the OP deleted all the code
And the post looks totally defaced now
 
One of the first year projects we used to do at Aber was to construct a carrot cannon.
Would probably do a fair bit of damage if aimed at a Kevin...uhh... person
 
Yeah, looks like a good time to roll back to the more codeful version
 
@vaultah yeah... revision 5 looks good
 
3:14 PM
Using just a hoover, some tinfoil and a long tube we could fire a carrot maybe...200ft?
 
At my first job, my boss wanted to enter a potato cannon competition, and told me to find a good flange for the tubey bit. Finally, I found the flangiest flange, and he said, "that's nice, but the competition is in four hours... Too late to order now"
And that's why you inquire about deadlines before starting a task.
 
@Ffisegydd saw it before
I think bc old java dates were better than anything currently in python that I will see the new java date stuff and then decide what is good
 
@davidism Thanks for the virtualenv -p advice. Helped a lot.
 
3:20 PM
vomit
I'm sure they are good but I just can't stop myself.
 
sry but
python stdlib is mostly s*t compared to java offerings...
python language is better than java
itertools, functools, etc are better than any java offerings
 
3:51 PM
.. continuing from there, then there are quite a many subpar pkgs in the stdlib that shouldn't have seen the daylight
and I am not trolling here :D
 
@davidism got your cv ;)
 
another all-chat close
 
have to agree with that, especially the community section :D
 
@AnttiHaapala datetime and urllib spring to mind as somewhat warty :(
 
3:54 PM
@JonClements this flaming started from me being apalled by datetime.utcfromtimestamp throwing 3 different exceptions on py3.3 for "value too large" :D
 
@Antii yeah... I noticed that :)
 
damnit, appalled
hey how about make a "new python documentation" project
that would be a wiki with merges from python documentation, with interactive comments :? :D
 
How many projects are we trying to start in this room? :)
 
First he bashes the "look at the code" mentality, then he bashes the docs for not having enough code.
Make up your mind!
 
@davidism look at the SOURCE of the ops
-1
downvote
look at the C source code of cpython
 
4:00 PM
How often does that even come up?
 
python documentation should be full of doctests
hmm about every week
he gave an example there
 
A question with the answer "look at the c source" comes up every week, without any other answer? Those sound like questions, which are distinct from .
 
there are questions like "why this behaviour" "bc python wraps your libc, nocando"
 
Well - not sure it was worth it - (only got 227 followers) - but tweeted out a link to sopython.com #stackoverflow #python
 
Reading this article, I have learned that I repeatedly beat the world's highest score for Tetris DX, usually while in the backseat during a long road trip.
I'm going to be insufferably smug about this for at least the next week B-)
 
DSM
4:08 PM
Pix or it didn't happen.
 
@AnttiHaapala recent example link?
 
You just gotta have faith in me :-D
 
my dog figured out how to work the air conditioning in my car
 
Did he at least teach you how to do it?
 
The article is now out of date, though. The new high score is 4,988 lines, which I definitely can't beat. You would have to play for literally eight hours, without pausing, to reach that.
 
4:10 PM
no but we argued about it. I wanted it on 2 and she kept setting it to 4. Furry dog
 
I remember seeing the dude who had the perfect pac man game.
 
It's kind of detrimental to a discussion to say
 
@Kevin I use to play a lot of tetrinet
 
@davidism I mean the behaviour of functions say in itertools is not clear from the documentation, I need to see them in cpython source code, nothing else exists.
 
> All of the issues mentioned in this article so far - and all those that will be mentioned later on - are conveniently ignored, waved away, or justified by many Python developers whenever they are brought up.
 
4:11 PM
The pills/ghosts/whatever were in the 1 in very-large-number position for it to be mathematically perfect.
 
I go consult cpython code once a week personally for myself
 
Because then they can point at us trying to defend and yell "ostrich"!
 
@davidism are you on #python on freenode?
 
IIRC, Pac man is entirely deterministic, so you could theoretically predict the motion of the ghosts with perfect accuracy.
 
No, just here, I used to be on reddit but that got bad
 
4:12 PM
you should go to #python
 
brb
 
every time I have a question I always ask myself whether to ask here or on #python. If I ask here, I might not get a reply. If I ask on #python I will get a reply that I do not like.
 
DSM
Life is full of tradeoffs.
 
for example: "how to know how many bytes of memory does an object (say long, or unicode) consume
 
I'm still not clear what communities he's complaining about, is SO on the naughty or nice list?
 
4:13 PM
@davidism nice
@davidism so I went to #python to ask to know how much bytes does my object x consume approximately (for a cache library)
instead of being pointed to sys.getsizeof which I was noobily not aware of back then
ppl just started telling I am an idiot for having to knwo it
 
This is sort of a Python and Ubuntu question, mixed together:
How do you set a path that is only active within a virtualenv? I mean like the Windows PATH environment variable?
 
waiting
 
I keep having to prefix everything with /path/to/venv/bin/
 
So then the argument is "people can't find the right communities to go to", not "the community is bad", because I'm sure there are places like that for every language.
 
shure
"For short questions, you can get immediate help by visiting the #python channel. You will need to first register your nickname with FreeNode, using the nickname setup instructions. For more info, see the channel's web site at python-pound.org."
 
4:18 PM
And I know this sounds mean, but the community as an entity is not concerned with the happiness of individuals, only it's overall growth.
 
@davidism ha?
they do not care about any growth on #python
 
I'm saying "they" don't care if they make someone unhappy enough to write a rant, if it clears up time to answer what they actually want to answer.
 
@Ffisegydd you've made it to the "hot meta posts!"
 
Simple as that. Just add to the $PATH. Deactivate, that new element's gone. Activate, it's back.
 
4:23 PM
@aliteralmind just activate the env, it modifies the path for you
 
Right. I wasn't sure where Python ends and the OS begins.
virtualenvs, with the -p flag and this custom $PATH concept...I'm starting to see the benefit.
 
DSM
real-time, real-numbers, and real-slim-shady: all real!
 
Hey folks, how do we feel about putting together a cannonical QA for issues related to using lst1 = lst2 instead of lst1 = lst2[:]?
 
@wnnmaw thought we already had one?
Umm... well, there's one for multiplying lists...
 
4:39 PM
@JonClements, if its out there, I haven't seen it
 
There's bound to be one... Think I saw a question about 10 minutes back that had a lista = listb and the answer was you need lista = listb[:] that kind of thing?
If we can find that one - that could be edited maybe
 
I don't know if there's any middle ground between "use [:] because I say so and because it won't work otherwise" and "here's a comprehensive guide about mutability, side effects, and the memory model of Python in general. Chapter 1..."
 
DSM
"I just learned python for a few weeks and I am now switching to c++". I'm choosing to interpret that as "I'm dabbling in various languages to get a feel for them. For the last few weeks I've been experimenting with Python, and now I want to try out C++ for a bit."
 
"I just learned [language]" is funny because it implies that learning a language is a thing that you can eventually finish doing.
It's a journey, not a destination.
 
4:47 PM
@JonClements, you mean this question? That's what sparked my curiosity
@Kevin, you could eventually learn all the features ever
 
there's always fun new things to learn in python
 
DSM
@Kevin: That's true, but I think it's reasonable to say that I know Python, even though there are modules in the stdlib I know nothing about (I just used xmlrpc for the first time yesterday) and there's dark metaclass trickery I always have to look up. And since once I didn't know Python, and now I do, it seems fair to say that I've learned it.
 
@wnnmaw perhaps something from here: stackoverflow.com/search?q=[python]+copy+list
 
Even simple languages like BrainF*ck can offer interesting new insights, long after you've learned what each symbol does.
 
and I'm not sure we should advocate [:] over copy, since the later handles nested structures
 
4:50 PM
@wnnmaw probably handy to have one that doesn't have loop, and is literal why lista=listb doesn't work as expected, explains [:] and copy.(deep)copy
 
@JonClements, so I should put one together?
 
That would be change the question quite a bit
 
Technically it's unclear
 
4:54 PM
I was about to say "it's like learning an instrument; you can't say 'I learned to play the piano' when all you can do is Three Blind Mice. You have to be able to play arbitrary songs"
 
buh. Has anyone used Parse? Is it worth using over a flask backend?
 
But that may be too strong of a requirement. Even a professional player might not be able to nail all the 1/256th notes in Flight of the Bumblebee, or whatever.
 
@vaultah it's not a very good question, but I don't think it should be closed
 
I'm reminded of the genre of music that literally can't be played by humans because it would require thirty fingers. They call it something like "black sheet music" because the sheet is just solid black when you transcribe all the notes.
 
@wnnmaw well it's got a good answer with all the options, an answer with timings... and we'd only need to add a sentence to make the question to put an example of I'm using litsa = listb - but when I make changes to either list - it is reflected in the other.
@davidism @Kevin what do you guys think?
 
4:58 PM
About adding that sentence? Should be fine, I don't think it alters the question appreciably.
 
If we expand that question to include common reasons for needing those answers, it couldn't hurt.
 
ok, that works
 
@davidism Just what I was thinking of :-) thanks, you saved me a lot of googling.
 
Btw, is there a special tag marking a question as a cannonical dupe?
 
@wnnmaw did you want to draft some text, suggested and edit, and we'll approve it (this being your idea)
 
5:01 PM
That's the musical equivalent of "please code me a Facebook. Can you have it done by tomorrow?"
 
Nah, one of you could probably do it better
 
@wnnmaw yeah go for it, we'll add it to sopython afterwards
if you want to make a gist, we can discuss it here first
 
oh man, this is gonna make me sound dumb.... but sopython?
 
We maintain a list of duplicate targets there
 
@wnnmaw nope - no tag - the C++ community did that and we umm'd and ahh'd about it, but decided to implement a separate system as meta discussions about it so we could also write separate articles and stuff that wouldn't fit into the Q/A setup
 
5:03 PM
neat
Ok, just gonna add this to a new line in the question: Using listA = listB then modifies listA every time listB changes. Why is this?
Does that jive with everyone?
 
try new_list and my_list or something, at least be PEP8 compliant :)
 
on codementor.io, what is the polite way to say "you're charging way too much"
 
ugh, I hate underscores, but ok
 
@Ffisegydd I was looking at: prediction.io
 
5:09 PM
Right, updated
 
Perhaps something like
> I tried new_list = my_list but then changes to my_list affected new_list.
oh, you already wrote it, looks fine then
 
I probably would have put the sentences the other way around, but I clicked approve instead of improve
That did get two rejects - that was close :)
 
@davidism looks interesting though it may be a bit simplistic for what we need.
 
@Ffisegydd ?
 
The canon item?
 
5:15 PM
Oh no wrong ping
 
@Ffisegydd you did that the other day as well :)
 
I meant the puppy.
 
You are forever shamed!
 
@davidism oi! You should be flattered he confused us... cough cough :p
 
Haven't reviewed many suggested edits, but I've rejected more than approved.
 
5:18 PM
@davidism 62/72 looks a healthy ratio
 
I quite like my ratio
I think possibly I'm even too harsh sometimes.
 
I'm sure we've had a few remove chars from string using recursion before
 
134/205
Anyway yeah @JON (NOT DAVIDISM) that Prediction.io looks interesting but as I said, possibly too simplistic.
I'm going to mess around with VW tonight/tomorrow with this pizza data as a bit of a test to see how it works.
Though possibly it was simply the video that was simplistic
 
@Ffisegydd okay... I was just looking at technologies and papers, and saw that as a possible option... whatever we can get our heads around properly to start with - the simpler the better for baby steps and understanding this stuff might be an idea... but if you're happy diving into the deep end :)
 
VW actually looks like simple. It is complex but not complicated :P
 
5:23 PM
Okay dokies
 
And it'll all be the same with any engine I think (basically extracting features from the text (REGEX...REGEX EVERYWHERE...))
 
@Ffisegydd or NLTK
That way can also do sentiment analysis - the "tone" of a post is a possible indicator
 
Yeah thats true.
 
Plus - much better lexers and stemming and such
 
I've started thinking about features on the trello page
 
5:37 PM
@Ffisegydd jut wondering if we lost the notes inspectgadget helped with when we first were considering this... not sure we ever moved it from the moinmoin server :(
 
I didn't even know we had any notes? D:
 
inspector gave a list things that could be considered based on the info we had and ideas on training stuff
 
He gave you/us his email address the other week
Could drop him a line
 
this is a really dumb question. On github, there's a dropdown for the .gitignore... what does it even mean?
 
where?
 
5:40 PM
@Ffisegydd Did he?
 
on the "make new repository" option
 
Aye when he was on the other night
 
Ooo... I obviously didn't add it to my contact list
 
It pre-populates .gitignore with something from github.com/github/gitignore
 
Jul 19 at 22:53, by inspectorG4dget
@JonClements: email me (ashwin.panchapakesan@gmail.com) stuff when you get a chance, please. I haven't been on chat for far too long, mostly because of a hectic work schedule.
 
5:42 PM
Ahhh... ty... I've save that now
 
I don't know him very well or I'd email him myself, might be better if you do.
 
@Ffisegydd okay... I'll do so in a bit...
 
oooh, that's actually incredibly convenient
 
@Ffisegydd I've updated the board before I go further - am I doing this right... (ie - that's your intent for the board)
 
@Jon yeah that's awesome, cheers.
 
5:55 PM
@Ffisegydd I've added this card
 
Cool. Yeah Antti suggested a similar idea yesterday I think
 
DSM
aargh method undefined for the type but it is defined aargh
 
@Ffisegydd can you think of anything else for questions?
 
I'll think about it while cooking and add some @Jon
 
I'll draft something for Ashwin in a bit
 
6:10 PM
how do I convince my university to extend my contract? This job is pretty relaxed
 
@corvid lots of firearms - and hold them hostage
@Ffisegydd ooo, you're one vote off getting another silver on meta
 
DSM
We might want to verify that the rules of felony murder don't apply before encouraging hostage taking. I know they don't apply to England any more but they might in other jurisdictions..
 
@Jon yeah altogether a successful question.
 
is there anything on the SOPython site yet to be implemented? Mind if I try to help with it and put it in for review?
 
6:32 PM
that is the sopython project board
 
"Management/Admin Page", what would be included in this feature? What should admins do? Are there "layers" of admins or just basic ones?
 
Umm... Magic 2015 is out
oooooops... forgotten to phone someone... rbrb
 
@corvid if you look at the Trello you'll see everything
We're also open to ideas you may have as well (that aren't on there)
nvm didn't realise davidism had answered you
 
okay cool, I will work on the admin one
 
@corvid if you can break it down so it's easy to add more features later on then that'd be awesome
Cos not sure what yet is going to be on the management page
You'll have to branch it and issue a PR etc but I assume you know all that shizz
 
6:42 PM
yep, know pretty basic source control
 
Does anyone else have problems access Steam's cart?
I've just added a couple of bits, go to cart, and just get a blank page
 
No idea, but I get that with Domino'ss Pizza all the time. Their site is pretty bad.
 
I've heard troubling things about Magic 2015. Namely, most of the "good" cards can only be acquired by paying real money for virtual booster packs
 
@Kevin yeah, and it appears once you chose a deck - you can't swap
Only wanting to try the demo anyway... looks like it's exactly the same but with different decks... if that's all they're going to do, I don't get why they just don't realise more decks
 
Because people will pay 15$ for an expansion to an existing game, or they'll pay 60$ for a "new" game with the year incremented by one
 
6:57 PM
polygon.com/2014/7/18/5917047/… I generally trust Polygon
 
@Ffisegydd I've read that... but I've also read some other stuff
Ummm... I'm gonna try the demo - see what I think.
I see to be reading something that means you can mix and match decks now - which was missing in the last one - that'd be good
If you can take preset decks, and create a custom deck from them... that'd be fun... makes tactics less predictable
 
Last Sunday's Magic Pro Tour was interesting. The winning player won 2 out of 3 games by beating his opponent to death with sheep.
 
@corvid would you like to join the Trello?
 
That kind of thing doesn't happen very often.
 
@Ffisegydd sure, I have an account on trello and I use it somewhat often trello.com/alexfrazer1
 
7:01 PM
@corvid username? I'll add you to the organisation
Ah cool
Awesome. Added you to the sopython organisation and also to the sopython-site page.
 
@corvid just to clarify, this feature is talking about managing who is in groups, not making a general admin system or authorization system
 
I thought it was an admin view on the site for managing groups? At least that's what I thought it sounded like
 
I believe all we need is an SO user ID -> group mapping for the time being
Just so people can add contributors without having to manipulate the database directly
 
it should list groups and who is in them, and allow adding/removing users from groups
what Jon said
 
Only two groups anyway isn't there?
 
7:07 PM
Yeah
 
only one right now
approved
 
For now...but soon there will be "Great Dictator"
 
Okay... so we'll need two then... people who can add/remove approved users - as don't think approved users being add to add other approved users sounds like a good idea to me :)
 
I'm going to rename "approved" to "Dark Council"
 
would this be by command line interface, or by a view in the website itself?
 
7:08 PM
there is a superuser flag right now, which grants all privileges
 
@davidism Yes. A thousand times yes.
@corvid view in the website
 
@corvid I already wrote a command line tool, we need a web interface
 
okay cool that's what I had in mind. But davidism, when you say "authorization", wouldn't the admin view need authorization to begin with?
 
I think for now allowing approved users to approved users is fine.
Everyone who is in the approved group is pretty much trusted already.
 
"All of our kebabs are 100% lamb meat..." - the first item on the menu is "Chicken Kebab"... well played takeaway - well played
 
7:13 PM
even the veggies: 100% lamb meat
 
I guess "kebab" and "Kebab" must be different items then
 
@davidism yup... there's a vegetable kebab there... :)
 
You know how they can make tofu look like other things? This is the opposite.
 
Reminds me of the post on Reddit last week of a can of grape juice. "grapes are a natural source of vitamin D", says the front. "Nutrition facts: Vitamin D: 0%" says the back.
 
Tofu is the devil.
 
7:18 PM
hail seitan
 
heh
 
DSM
Someone just won pun of the day.
 
*Someone who isn't Kevin just won pun of the day.
 
Where before you were forced to play a particular deck against a particular enemy, with no wiggle room for personalization, in Magic 2015 you are given free rein to play however the hell you like.
 
good song/songs/artist/music to listen to whilst programming?
 
7:26 PM
However I like? Ok. I'll play an Island and the Hoyle "How to play poker" card. I'll tap both and cast Death. Good game.
 
rainymood.com and some smooth instrumental jazz along the lines of Fragrance of Dark Coffee
 
haha rainymood
 
DSM
Songs I don't like too much, so that I don't sing along.
 
7:29 PM
hey guys, I'm trying to get my first google app engine application running
but I'm running into some bug I can't decipher
 
The Spin Doctors' Two Princes on repeat for hours and hours
 
I've done some research, still can't figure it out
anyone know what the problem/fix is?
 
@JeremyBader what's your error?
Ah nevermind
I thought you'd posted code
 
google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to bind localhost:8080
 
Do you already have a process open using 8080?
 
7:31 PM
I don't think I do
 
@Kevin +
with a big smile on your face haha
 
is there a way to check that? @Ffisegydd
 
DSM
Can you run netstat or lsof from within your environment?
 
sure, which output would like me to pastebin?
 
i have a text ediotr, any pointers on methods to save all the tag and index data for styling etc,
 
DSM
7:36 PM
Something like netstat -an | grep 8080, maybe?
 
"tcp46 0 0 .8080 *. LISTEN "
does that tell you anything @DSM
@Ffisegydd
 
DSM
Tells me that something's using 8080. Sorry, I've forgotten the syntax-- could you do the same with netstat -tulpn | grep 8080? That should tell you the process number and hopefully the name.
 
"netstat: n: unknown or uninstrumented protocol" @DSM
 
DSM
Okay, so your netstat doesn't use the same syntax as mine. :^) Read the manpage to find out the syntax you need. For example, when doing that, I get
tcp6       0      0 :::8080                 :::*                    LISTEN      31114/java
 
I got help from another forum
I just decided to run it on port 9080
do you think that's ok?
it is working now
 
7:51 PM
You'll need to make sure you cancel it properly though
Or it won't work on 9080 next time.
 
cancel what?
 
the thing that you're about to run on port 9080.
 
you can run it on whatever port you want, but only one thing can bind to each port
 
DSM
Assuming you clean up appropriately, and it's not already in use, it should be fine. If you have a port collision, you can either shut down what was there before or just choose a new port. If you don't have anything else to sync up with (which might expect a particular port number), it doesn't matter too much which one it is.
 
7:53 PM
alright lemme try, thanks guys
I think it's canceling properly
tried stopping and restarting the app on port 9080 and it worked fine
 
@vaultah not to encourage that behavior, but those sarcastic remarks are pretty satisfying sometimes
 
DSM
There are roughly a gazillion questions on that exact problem already.
The google-fu is weak in that one.
 
It's worrying to see geneticists struggle with string operations. This is how people get infused with insect DNA.
 
lol "Good luck to you."
 
I doubt that's a geneticist, just some class assignment about reading, changing, outputting strings
 
7:56 PM
> I'm also interested in applying Python to Bioinformatics.
 
Oops, you mixed tabs and spaces. Now you have two heads.
 
Minecraft, minecraft, money, minecraft, bioinformatics
 
@Kevin actually MTG2015 seems okay to me... starts off a lot harder than the last one... and I didn't actually know what I was doing last time, but now I think have an idea... the tutorial's a bit of a stranger... but can't find anything immediately wrong with it - it's certainly not slower...
 
7:59 PM
Accidentally opened a file in write mode and now all my data is gone :'(
 

« first day (1390 days earlier)      last day (3561 days later) »