« first day (2111 days earlier)      last day (3061 days later) » 

08:00
cbg @AndyK
cbg @ChaoticTwist
what you up to?
not much. I'll be off on hols in a 3 days time... can't wait
how about you?
My vacation will be over in 3 days :P
ha ha
08:08
Cabbage!
I hate the career portals of most companies. Use only Internet Explorer. -_-
o/ @poke
Is anyone fit with reactive/observable operators? I never can find the ones I need >_>
> Sign up to submit your application
08:23
I filled 6 pages and got the message saying You're not using internet explorer
was the company's name "Microsoft"?
Nope.
Deloitte
I did it using python :P
Well, I mean Deloitte: there's your problem.
Quite.
08:38
Ahahah, Andras, I just realised - my problem was I couldn't use .isin because it was throwing a KeyError, right? Because the thing I was checking against wasn't a keyed column, but an index. Eh, yeah, you just do df.index.isin. Derpderpderp.
(Also, this is your fault, Fizz, you started me down this path of Pandas and Machine Learning ;) ) ('fault')
hello guys~ :D
@Withnail you're right :P
I'll have you know Deloitte's best consultants built that!
Well, they specced it and had it built overseas
Also it ended up costing more than if they'd just built it locally
But...it exists! And that's the main thing.
Heh. If I end up taking the job, I'd be one of those consultants :P
08:50
I’m technically a consultant too!
What do consultants do exactly?
answer questions in codereview.se
Well, consultants are basically people that go to customers and tell them how they should solve their problems.
> Talking to customers
> Talking
baha
08:55
I'm a consultant as well. This mostly entails charging 4x as much as I'd get paid on salary for the same job, and getting to tell senior people they're idiots without (as much) fear of career repercussion.
Sounds like a nice career path
:D
Well, I’m a consulting engineer, so I get the best of both worlds
Especially @Withnail 's description.
@poke what's different about your job? (compared to just consultants)
Well, I do lots of development stuff too. Pure consultants talk mostly, I still mostly do dev stuff
Oh. Nice.
08:59
there should be a middleware social people between customers and geeky devs/consultants
I only consult on Business Case stuff, so mostly telling people the blindingly obvious for exorbitant day rates (the talking bit of Poke's description). It's pretty dreamy in terms of actual work (well, effort/reward ratio anyway), I want to get more across to the development world and do more technical consulting.
Isn't that a 'product manager', @khajvah?
Hello, guys.
Did not know StackOverflows has a chat room o.O
It’s somewhat a lame excuse not to hire specialized consultants and devs, but to expect the employees to do both, but I think that makes it nice.
@hadarS maybe it doesn't and this is all a dream? :p
What is this all about ?
09:00
Nothing, you're just tripping bear balls.
Can I ask you a question about python that has been wandering around my mind for a while ?
Absolutely!
We love questions that have been wandering within minds for a while
as long as it's wondering for more than 1-2 days, right?
:D
Is it possible to creat Android apps with python? I've found something about Kivy, but nothing exactly
I'm interested in creating a simple database to see what books I already have at home so I won't buy them again.
@khajvah ~1month
Yes, but.
For that use case, I'd just create a small webapp in Flask/Pyramid and make it responsive. Simpler than messing about with PyMob and all that.
09:03
But what?
I thought it is a good startin point
And i need it :D
Also, if you can do stuff in Python, doing simple stuff in Android is fairly straightforward, I've found the transition fairly simple, and I don't have that much experience in python.
I am kind of skeptical about using non-native stuff on mobile.
For mobile app development.
@khajvah why?
@khajvah I hate the open web as much as anyone, but it should be fine for this
it feels hacky
09:06
^^^ Also that. We used Cordova Phonegap for a while and it just wasn't quite right running the app on the phone, unexpected behaviour, and honestly quite a lot of hassle for what we got.
but mostly because that write once, run on everything stuff results in everything written in JavaScript, so there is that
Oh...
If you want to learn mobile/app stuff, I'd go ahead and learn mobile/app stuff. :)
@khajvah or HTML, for the use case described
"A list of books"
yeah that makes sense
09:09
Android studio's done by the same people that make Pycharm, it's v nice. And free.
I should farm for reputation in documentation.
So, what do you recommend?
If you want to learn Android development, go ahead with actual android development.
if you just want the book application, you can make a simple web app. like Withnail suggested.
Morning all. Are we still mad at docs? ducks docs
(I'm using this course - it's pretty good - a lot of the courses around are outdated and still use Eclipse rather than Android Studio - udemy.com/ultimate-android-lollipop-app-development-course/… )
09:16
I'll keep that in mind.
Well, thanks all!
I have to go as my lunch time is ending
Enjoy!
Thanks for your help
@JRichardSnape I kind of think there could be a good use of it but in current form, it's massively overused.
One of the best things about this place is I get to have an opinion regardless of how qualified or not I am on a thing. It's like being in the Government.
@Withnail @khajvah @RobertGrant
09:19
@Withnail With or without having to follow a party whip? :p
I think, you can write your cool and clever solutions to famous problems in documentation instead of your blog. But not copy-paste docs.python.org like it is now
I'm basically benevolent-dictator-for-life so the only whip is the one in my hand. ;)
@khajvah How come the date that Scala became your favourite language is so specific? Did something earth shattering happen that day?
@hadarS :-)
@Withnail no lol I started reading about it and really liked it. But I am starting to chane my opinion
I just started learning a bit of Scala; why don't you like it so much now?
09:25
It's cool, I like it but don't love it like in the beginning
Ah okay
I spent a bit of time with Clojure and really enjoyed that
09:48
@MansoorAkram as per the room rules, please don't spam your q in here as soon as you've posted it
@RobertGrant I want to try OCaml
@MansoorAkram Also your question has -2 votes already; surely you want to fix it before publicising it further?
right now, I am learning haskell for to get a feel for strictly functional language. Then I will try OCaml
Its fixed, I have mentioned that my company requires regex and not other parser but still negetive points.
and people do what they can, so give negative feedback or positive it's choice.
@ThomasAyoub Dear Sir I am not allowed to use anything other than regex. My company's restriction. — Mansoor Akram 5 mins ago
amazing
yes its amazing though He is a nice guy.
10:07
Your question also didn't say what you want the code to do, which is probably why it got downvoted
@khajvah I've heard some people say Scala is like Haskell on the JVM; what do you think?
@RobertGrant I find Scala more of an OOP language with functional features
I guess the type inference side of things might be why people say that
yea
but the structure of resulting code is Java-like
Yeah it's imperative
But could you write Haskell-looking code in it? (Interesting)
dunno, maybe. I am not yet good enough in either.
10:21
@RobertGrant I'm slowly working with more Scala. I'm finding the need to write more Java lately and would prefer to use Scala.
Though I'm also appreciating Java 8 functionality.
With Streams it's almost like writing JS \o/
Strongly typed JS :)
TypeScript?
Yeah I'd like to use the Java 8 stuff, it looks quite nice
Though having recently had to initialise a Map object with static values I was wishing for Python
Didn't know this: F# lets you do agent-based concurrency like Erlang
Yeah Python is still so much easier to use, but Java/Scala has its uses. It's nice to have a compiler and typing sometimes :P
Though I guess Erlang's main advantage is OTP or whatever it's called
@Ffisegydd yeah it's like XML vs JSON - a lot of the time you don't need lots of formal structure, but sometimes only full namespacing and WS-Security will do
10:54
cabbage
Morning Andras!
@Withnail +1 for Android studio
Heh. See above that for my comment to our discussion about dataframes last night :)
obvious answer is obvious
@Withnail heh:D
now I can admit that I don't know pandas at all
my only tag score for pandas comes from "you have a numpy problem" answers
At least you didn't cause pandamonium ;)
groans at self
Morning.
11:02
points to the door try again.
@JRichardSnape morning:)
Resisting the urge to do a plagiarism check across SOD. I think if one "programs" by copying examples from the internet, one's appreciation of plagiarism might be ... erm ... limited.
Just managed to gently advise someone to remove their lovingly copied version of an entire library API from SOD :p
It's a pretty daft analogy.
@AndrasDeak Marmite might be more apt.
hahah. I was thinking 'is this an extended peanut butter cups metaphor?'
Does that make tutorials speculoos?
11:10
@JRichardSnape Just groans...? I don't think that's extreme enough... /me hands you a .44 Magnum...
@JRichardSnape there's a rejection reason for plagiarism
@AndrasDeak Is there - I didn't see it. I put it under "Other"
@JRichardSnape yuck?:D
We should start filing DMCA takedown notices.
Problem is plagiarism can be a little hard to detect if you're not familiar with the exact library in question. Although, unfortunately, I am well practiced :(
@Ffisegydd Surely that would get you perma-banned ;)
These undesirables, interfering with the One Great Project.
11:13
Cabbage
CMs will just delete Fizzy and all recorded history of him
Monsters, the lot of them.
@PM2Ring cbg
They can never delete me from your heart Andras.
who said that?
11:14
D:
I don't get that analogy either. But maybe it means that if you're sensitive to nuts you should avoid SOD. :)
<beep> ---------------------------------------------------
@JRichardSnape You don’t need to file them with your username
Heh. "Signed Fizzy and poke"
@poke :) They have ways of making you talk ;)
"Love, Hairy McHairface"
11:16
I'm starting to think that I should rehash some high-traffic tags just to reap some nice reps
@Ffisegydd “Signed Mr. Frumblebottom”
@AndrasDeak Don't be tempted to the dark side.
Although, TBH, I don't know why not.
I have a nagging suspicion that my protest in form of ignoring high-traffic tags in docs will be left unnoticed and it will not actually make a difference sigh
Apparently you can only file DMCA if you're the copyright holder.
Pfft, technically yes.
In reality, people do it all the time.
11:19
we should teach win​gd​ing to send DMCA takedown notices to SOD
(he's a very persistent troll on main)
damn it, I can't get myself to do it
screw rep inflation
Buh - using that new format - offices.loc[offices[‘Employee’].isin(munged_output.index), keylist] = munged_output[keylist] - it replaces all the columns in the offices dataframe with Nan - is that because they have different indexes? If I show munged_ouput[keylist] it shows me the data I want - the two frames have headers with overlapping names.
For Legal Reasons(tm) I must point out that any and all ideas, theories, hypotheses, discussions, or gifs relating to Documentation or Stack Exchange as a whole should be considered jokes and should be considered the opinion of the individual author. For further information please contact our Corporate Advisor, Tristan StreamFace.
@Withnail Yes probably.
It's trying to lookup values to put there but cannot find any (due to the indexes being different)
Hm, ok, ta.
ahem, indices, ahem
Oh I just found @vaultah's rhubarb pie on the starboard
11:36
@Ffisegydd Can we host “Documentation Exchange” on sopy?
It’s a new project I just came up with
I wondered about that
Huh, ok. I can get it to transfer properly if I reset the indices on both before I run that command, but that feels really clunky and like a hack. Any recommended reading on this?
Documentation that dynamically pulls in snippets/all of SO answers
When I say dynamically, I mean it's a Javascript thing that grabs content and shows it, like a Gist
Just recieved an email telling me I am "a key note speaker at Animal Behaviour 2016 conference". There's a little bit of me that's tempted to go and talk about some random software project for 45 minutes.
11:46
Go and talk about Python behaviour, obviously.
@JRichardSnape If you don't shave then just standing on your hind legs and saying anything might give them cause for note-taking
4
Especially Pythons in Pyramids, Flasks and Bottles. I predict you won't last the 45 minutes. :D
@RobertGrant Have a star - that made me laugh heartily
On all fours "Four legs good" stands up "Two legs better" rapturous applause
11:48
@JRichardSnape Puppy linux?
that would be Shitty Animal Behaviour 2016 conference
@JRichardSnape :D
Just go round the audience doing this:
Homer or the Parks guy, totally your choice.
@Withnail Oh yes, I am happy now. Python when twisted behaves differently, however the behaviour is best in BeutifulSoup. I definitely recommend letting python loose on Puppy.
audience gasps
My question above about the way I've hacked that Pandas dataframe back together - I think I want to ask it as a question. As it works, even if it might be an anti-pattern, is it better posited on CodeReview than the main SO site?
11:51
I'd tend to say yes, but I've found CodeReview an awkward place to fit into.
@Withnail One thought, BTW - can you reindex office to use Employee as the index? As it looks like munged_output is indexed on Employee. If so - then maybe your indices will match.
Excerpt from a research PDF:
> Initially, the program is not well optimised and is unable to
execute on a large number of input due to stack overflow.
Bit strong I think? Docs may suck but I don't think you can blame optimisation problems on SO.
that got published? Jesus, I'd fail an undergrad for putting something like that in a paper.
@RobertGrant Sure you can, the example I copied from SOD wasn't optimised for large datasets. Bad SO.
11:59
@Withnail Actually I just can't tell if that was a joke or not
:D
when the joker becomes the jokee...or something
strokes chin Possibly.
I think that's what I'd do: offices.set_index('Employee',inplace=True) followed by offices.loc[munged_output.index, keylist] = munged_output[keylist]
You can always then reindex if you need to get Employee back as a column
DSM's your man really for this kind of thing.
@Withnail what Q is this?
^^ That sort of running question about chopping and transforming pandas dataframes.
12:13
Oh... is it all spread around in chat then? Not in a gist or something?
Yeah, I've asked bits / for pointers as i've gone.
@withnail - is this kind of similar to what you want? pastebin.com/70vCsNHa
I'm just pulling it all together in Pycharm just now, after hacking away at it in the console. :)
Sounds a very familiar way of doing pandas to me :)
yeah, that looks likely. I'm going to make sure this one works, and then I'll try that as a refactor.
oh, interesting. Yeah, ok, that sort of works - except there's a date column (which I made the index originally so I could slice by date), which I lose if I use that method - so I suspect probably using offices.transpose('Employee','Date') is the way to do that effectively - don't think i've used the right syntax there but you get the idea.
12:20
I'm getting an IO error when reading from a file, but it goes away if I print a string into another file. Thanks, fortran
There's a fresh SO question asking about cosine similarity of a N*N matrix. I assume that the OP wants the dot product of each pair of rows in the matrix. Is that correct?
said basically no-one ever
@PM2Ring ¯\_(ツ)_/¯
@PM2Ring probably, yes
@AndrasDeak If that were C, I'd say it sounds like a pointer bug. But IIRC Fortran doesn't have pointers... although I literally haven't touched Fortran in decades.
I suggest scipy.spatial.distance.pdist :P
the cosine metric can be reverse-engineered into a scalar product:D
12:23
@AndrasDeak Ok. In that case, he's going to be waiting a while. His matrix is 1000000 x 1000000 :)
@PM2Ring I don't actually know that expression (cosine similarity, that is), but wiki seems to indicate that it's a clearly vector-vector quantity
FORTRAN indeed does not have pointers as far as I remember.
on my level it most certainly does not
i'm perpetually amazed that stuff is still built in Fortran and the like, and then I remember that most of the government systems that deal with money in the UK are built in COBOL85 and there's only about 10 people can program them now.
(but everything's passed as freaking references)
@Withnail working with our 5-index complex arrays would be...cumbersome in cpp
12:25
@AndrasDeak I guess it could be buggy peripheral interface code that's written in C or assembler that's linked by the Fortran compiler / linker.
I'm not even doing anything fancy, just parsing a text file (since fortran's the best tool for that)
although I am attempting the fortran IO equivalent of a try/catch block, so I'm on my own
(and no, I didn't sleep too much last night)
Me neither. Perhaps I'll catch up tonight...
hehe... youtube.com/… - a good response to "Is it true that you hate puppie?" - crap song though...
@Withnail Mmm - in that case you might first have to reindex to make the Date a plain old column and then set Employee as the index.
12:41
I don't think I've ever done that, but I must confess that I was rather liberal with my upvotes on answers when I was going for the Sportsmanship badge. :)
Reindex: what Santa uses to keep track of his reindeer. :)
5
@PM2Ring Also sounds like something which is used to repel reindeer.
Good call.
@JRichardSnape Did you get those links I left for you re: Sant Andreu Jazz Band? I didn't realise you were on holidays at the time, so you might have missed them.
@PM2Ring I didn't
I went totally internet-free, which was fun.
@JRichardSnape thanks for that example, btw. Changing the index was the much simpler and more reliable way of doing it. \o/
Cool - no problem :)
12:52
@JRichardSnape Fair enough. Sant Andreu Jazz Band are a kids' school band from Barcelona. Their teacher / arranger often plays bass or sax with them, and they often have an adult professional sitting in with them. Give me a sec and I'll find those links...
Jul 13 at 15:41, by PM 2Ring
@JRichardSnape: Check this out! Here's a rather impressive rendition of Billy Strayhorn's Lush Life from the amazing kids of the Sant Andreu Jazz Band, this time featuring Elia Bastida on violin. She's a tiny bit flat in a few spots at the start, but I think we can forgive her for that.
Jul 15 at 14:27, by PM 2Ring
Here's some big band bebop from the incredible kids of the Sant Andreu Jazz Band: Hi-Fly by Randy Weston featuring Magalí Datzira on vocals and bass. The tone of her voice isn't great, but she certainly has great jazz feel.
I didn't read that as literal kids at the time.
literal kids or eval(kids)? groans
Here's a small group of Sant Andreu girls. The Carla Motis trio: Elia Bastida on vocals & violin, Andrea Motis on vocals, and Andrea's little sister Carla on vocals & banjo. With help from their teacher Joan Chamorro on bass. Andrea also plays trumpet & sax. Bei Mir Bist du Schon
something something Lisa Simpson
Morning cabbage.
13:03
cbg
Or should I say.. Guten Morgan
no, I shouldn't
Some more from Andrea & Carla. This time with with Carla playing some nice guitar, and Andrea taking the vocals & doing a pretty average trumpet solo; I've definitely heard Andrea play much better, but it's still ok. On The Sentimental Side
Eg, Our love is here to stay Andrea Motis & Joan Chamorro Group.
Cool - I'm enjoying those @pm2
Great!
morning everyone
13:19
Some more from Elia, Andrea & Carla, this time with a slightly larger band, performing Django's Minor Swing
cbg once more
heh...starting to get headhunter emails for NLP projects and wonder if that is due to my work or just search tracking
I'm getting the feeling that the OP of reading a text file into a single string will object to the dupe target, saying "that doesn't tell me how to load it into a triple quoted string!"
ofc there's no such thing as a "triple quoted string"* but that's map-territory confusion for ya.
(*there is a triple quoted string literal, but that's something else entirely)
yes I have checked that post and its not what I want, the post was talking about how to read it as lines in a list, I want to read the whole text file as its in 1 string between 3 quotation marks — tarek abo elwafa 1 min ago
Nailed it B-)
guys, what was the name of that linux tool which could watch log files live?
watch?:P
tailf?
I'm sure I'm unfamiliar with the tool you're talking about
If you want your string to start and end with three quotation marks, just add them yourself. s = '"""' + s + '"""'Kevin 55 secs ago
13:31
tail -f?
I smell a troll
@vaultah tail -f, or tailf, but the latter might be better
look at man tailf
> tailf will print out the last 10 lines of a file and then wait for the file to grow. It is similar to tail -f but does not access the file when it is not growing.
@AndrasDeak yea that's it
it won't touch your logs
thank you
@AndrasDeak thanks, reading
13:32
@AndrasDeak 10% trolling, 90% giving the simplest possible solution to what might be his problem in an attempt to get a response like "that won't work because [insert OP's actual problem here]"
@Kevin :D
directed trolling with a specific purpose is still trolling
Maybe his real problem is "is it possible to change the output of print(repr(my_string)) so it resembles a triple-quoted multiline string instead of a single-quoted string with escaped newlines?"
@Kevin When the OP starts talking about "Notepad" files, my expectations that they know what they're doing tend to be rather low.
Or maybe "I want to include this text file in my source code"
@PM2Ring no, he's just using another jargon, clearly. He wants to read a note pad.
@PM2Ring Yeah, if I don't get a coherent problem statement in his next reply, I'm going to cut my losses.
13:35
some read books, others read memory addresses
OP wants to read a note pad
@PM2Ring I think the sound engineering lets her down a bit w.r.t. the tone thing - as you say, great feel; really solid.
I realized that (a) I'm hungry and (b) there's a nice bakery on the other side of the street. Be back soon (bisy backson)
@JRichardSnape Good point. The sound quality of the Sant Andreu clips is generally pretty good, compared to a lot of YouTube clips, IMHO, but as you know, getting the mix right from a large ensemble is difficult at the best of times, especially when there's wind instruments involved.
Very much so - having done a bit of live sound engineering I can only agree. Probably also makes me over-harsh ;)
holdenweb to the rescue
13:40
I'd lay odds that holdenweb's b) pertains in that comment.
"what's text mode?"
cbg friends
cbg
@AndrasDeak Not sure it will be helpful, but at least it establishes some terminology for the OP to be able to think about what (s)he was asking
So in gerrit we use WIP to indicate something is a work in progress so it doesn't get merged....every time I see it I keep thinking of the song "whip it". </useless_info_on_a_wednesday>
Basically I'm trying to take in commands as if I am pressing the keyboard. For example I open a notepad file. Once it opens I want to press 'a' 5 times and then press 'Tab' and then press 'b' five times. All within a python environment. — hrocsays 14 hours ago
lol
@idjaw no pull requests?
13:48
@idjaw I used to know a guy who named his pet whippet Devo, after that song.
@WayneWerner Gerrit doesn't work with PRs exactly. It has voting. So if you agree with the code review you give it a +2, and if you agree with the "work flow" you give it a +1 which will then start the merge.
It helps other developers skip over reviews if they see a WIP in the heading
so they don't waste time reviewing something that is not ready
also assigning a -1 to the work flow yourself helps really ensure no one goes ahead and does a "oops" merge
@PM2Ring ha! nice.
@WayneWerner And the answer is a winner "It's not so clear what you're asking,"....
DSM
DSM
In an hour I'm interviewing an intern candidate and grilling him about Python. Any good question suggestions? We're having a general Python discussion first, then doing some coding problems, and then going over some of his code on github.
It seems perfectly clear to me. He wants SendKeys but for Python.
Oh man, I didn't read this one
I mean I create a script that opens notepad. Once notepad is opened I want to type words into the notepad file within a python environment. I don't to type in the notepad program because it defeats the purpose of python scripting. — hrocsays 14 hours ago
13:54
@DSM Ask him how to open a notepad file in Python and press 'a' 5 times and then press 'Tab' and then press 'b' five times all within a python environment ;)
4
I occasionally write input automation scripts myself, so it's strange to me when people get hostile about questions asking for the same thing. (It's understandable in this case because the initial question was so vague; I'm just talking about in general)
@WayneWerner I second that one
I think most people have issues with vagueness
and "I'm noob didn't read lol halp"
His comment makes it perfectly clear what he wants, so I'm voting to reopen
I didn't actually check the post in question, just talking about in general
13:55
@DSM simple decorator example. Write their own context manager. Or ask them to explain how "with" works exactly
Differences between 2 and 3 is a good one, see how deep their knowledge goes.
@Kevin I don't mind automation - I use it a bunch. I'm only hostile to people who want to do insane things
ah I just had a good one and it escaped my head...GET BACK HERE
like... why would you type into python and want it typed into somewhere else also?
that doesn't make much sense
@Kevin I can't understand what he wants still - I want to type words into the notepad file within a python environment. ???
13:57
@idjaw Think about radishes!
@WayneWerner mocking some kind of input?
@JRichardSnape To be fair in jupyter you can open stuff using the %edit command.
@AndrasDeak That's not mocking - the OP said they want to type it in
(I have literally no idea what you're talking about but just saw that one message)
@WayneWerner well they're Rambo:P
13:58
lol
%edit my_brain.memory(erase)
I should look at the post, now you've piqued my interestt
I'm interpreting "take in an ascii" to mean "write a string literal exactly once while composing the program"
On the topic of gotchas - I actually didn't know that Python lambda variables are bound like JS functions...
dammit fizzy now all I can think about is salad.....cbg.....yam.......GOT IT! Thanks Fizzy...you're the best


@DSM ask them to explain http://stackoverflow.com/questions/18946728/changing-an-element-in-one-list-changes-multiple-lists
13:59
He doesn't actually want to do SendKeys(input("Enter a thing to be typed"))
though I guess it makes sense, because don't normal functions work that way?
@WayneWerner do you mean that variables bound on call, not definition?
Ask them the difference between __add__, __radd__, and __iadd__.
otherwise all those lambda x,y=y:foo(x,y) stuff would make little sense

« first day (2111 days earlier)      last day (3061 days later) »