« first day (1990 days earlier)      last day (2944 days later) » 

3:09 AM
answer = 'Yes'
Pre-op
 
3:49 AM
@AnttiHaapala speedy recovery. All the best.
 
4:19 AM
Thanks
 
 
1 hour later…
5:34 AM
Cbg
 
5:55 AM
CBG all.
 
 
1 hour later…
7:03 AM
Hi friends , How to check whether a hidden file named .dbr exist in my Home (~) ?
 
7:28 AM
friends, how to change this condition to not exist how : if os.path.exists(os.path.expanduser("~/.dbr")) ?
 
cbg
if not os.path.exists(...) ?
 
 
1 hour later…
8:49 AM
hi. matplotlib was working earlier. now it says that no module named matplotlib and it is not a package
what to do?
 
9:04 AM
do you use it within a virtualenv?
 
9:20 AM
@SarthakAgarwal we can't really give any help without more details.
Are you doing exactly the same thing as before?
Have you done anything else since it started working?
Can you import matplotlib from the REPL?
 
9:36 AM
I deleted it from lib and then installed it again using pip
@Ffisegydd I ran the same code as I did earlier. What's REPL?
 
with open('/~/.dbr', 'r') as file:
for line in file:
if NaNa in line:
print "No active content!"
 
@SarthakAgarwal The command line.
 
please advise what's problem in line : with open('/~/.dbr', 'r') as file:
 
@SarthakAgarwal see when you come in with a problem about a library not working, saying "I deleted it and re-installed it using pip" is probably quite an important thing to note, wouldn't you say?
@Anes what OS are you using?
 
I tried doing that after it stopped working.. @Ffisegydd
 
9:39 AM
@SarthakAgarwal why didn't you just say that then? You made it sound like you were answering my questions.
 
Okay my bad
 
@Ffisegydd Ubuntu
 
@Anes and what is /~/ supposed to be in Linux directory terms?
 
i need to take that hidden file in /home folder
 
Any suggestion what I should do? @Ffisegydd
 
9:41 AM
@Anes yes I can guess what you're doing, but I'm asking you to look at /~/ and tell me what it means.
And think about it.
(I'm presuming you have some experience of Linux and filepaths here)
@SarthakAgarwal I asked you some questions and you have yet to answer them, so no.
Or at best you answered 1.
 
I used matplotlib to draw a graph from an example copied from the web. It worked fine. Today, I tried to run the same. It gave me error that"ImportError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package". I tried finding it on net, but to no success. I deleted matplotlib from lib/site-packages.. and using pip, installed it again.
It still does not work. Giving the same error. @Ffisegydd
 
@SarthakAgarwal what version of Python are you using?
 
Did you use the 3.5.1 version of pip?
What OS are you on?
 
Windows. I open the cmd at the scripts folder and type in pip install matplotlib
 
9:48 AM
morning
What am I reading, ubuntu and matplotlib?
Just my stuff:p
 
@SarthakAgarwal try python -m pip install matplotlib
@AndrasDeak dude.
Come on.
7 mins ago, by Ffisegydd
@Anes yes I can guess what you're doing, but I'm asking you to look at /~/ and tell me what it means.
7 mins ago, by Ffisegydd
And think about it.
 
sorry:(
 
Getting people to think for themselves doesn't work if you just go give them the answer D:
 
I only saw this one:
9 mins ago, by Ffisegydd
@Anes and what is /~/ supposed to be in Linux directory terms?
didn't get suspicious
feel free to put my messages through the knives
 
'python' is not recognized as an internal or external command, operable pragram or batch file. @Ffisegydd
 
9:51 AM
I'm afraid this is a much bigger transgression because of reasons, and so I will be sending Antti to stab you once he's out of his operation.
 
@Ffisegydd :P
 
@SarthakAgarwal then run it however you would normally run a python.exe
 
Oh, so appendicitis it is:S
 
I don't know your exact circumstances so cannot do that for you.
And make sure it's the correct version of Python (should you have multiple ones)
 
In my scipts folder, there is easy_install, easy_install-3.5, f2py. pip, pip3.5 and pip3
 
9:53 AM
@SarthakAgarwal try pip -V
It should tell you the Python version it is for.
 
in the cmd?
 
No write the command on a piece of paper then feed it into your PC via the USB slot -_-
Yes in the cmd :P
 
says, ppip 8.1.1 from (folder path) (python 3.5) :D
*pip
 
Cool that's good.
Just checking you hadn't accidentally got some old pip from an old version of Python or something.
 
okay.. Should I just reinstall python?
 
9:57 AM
You can try that if you want, but I doubt it's necessary.
 
What do you think is the problem then ?
 
isn't there a which python or something on dos?
 
I'll try reinstalling. Thanks :D @Ffisegydd
 
anyway, that wouldn't return anything, I realised
 
@SarthakAgarwal as you're using Windows you may want to try Anaconda.
It's easier to deal with than using "normal" Python on Windows.
 
9:58 AM
Yeah? okay
 
Especially for things that require compilers
 
 
1 hour later…
11:13 AM
Cabbage.
Get well soon, @AnttiHaapala!
 
hi
I hope in the land of "broadband is a human right" there's a good connection in the hospital:P
 
@idjaw: I was just catching up on the transcript and noticed you put together a canonical Q&A re: trying to import a module with the same name as your script. Nice work! FWIW, here's one I prepared earlier. :) stackoverflow.com/a/32181353/4014959 However, I didn't bother showing the outputs when I first posted it, but I just added it now.
@AndrasDeak Hi. I'm sure Antti can get a connection, but I wouldn't be surprised if he takes it easy for a day or two.
 
@PM2Ring I guess
 
11:32 AM
Sitting up is probably not a fun activity for Antti at present.
I noticed in the transcript you mentioned that lots of people self-delete answers when they see that they've been FGITW'd. Once you hit 10k, you'll see a lot more evidence of that sort of thing.
 
And people editing the Q in the grace period to prevent their dirty secrets from being seen by 10kers.
 
Oh yam. idjaw will be pleased: his old "buddy" is back: stackoverflow.com/questions/36261491/…
 
12:02 PM
@PM2Ring Oh but this v2! Now the codez
 
@idjaw I've decided to be a nice guy and give him the codez.
 
@PM2Ring Really happy to contribute a cononical question! :) End result was a team effort. Glad it was well received
so this v2 went from 'working' to being a 'student'
and cbg all! :)
 
Cbg
 
hey
 
@idjaw It's possible to be both... but I highly doubt he's working as a coder.
 
12:17 PM
Cbg
 
@PM2Ring he's 14 though. Unless he is in a part of the world where there is no minimum age for workers :)
@AnttiHaapala How you holding up?
 
@Anes it should be ~/.dbr. However open does not handle ~ - you have to use expanduser
@idjaw recovering from op here
Feeling better immediately after the op than before
 
Hi, Antti. Please, no reindeer wrestling for a few days.
 
@PM2Ring thanks I'll try to remember that
I'm using phone now :P
Not much else to do than chat
 
well, glad you're OK!
welcome back
:)
 
12:26 PM
Dont know about that yet
Complications are always possible
 
=/ well hoping for the best. :)
@PM2Ring they deleted their question?. Now was it out of frustration because they didn't understand your code, or did they grab and run?
 
That was my first thought, but Humzah's question just got deleted by Community. I think that means his account was just killed by a mod.
 
justice...I love the smell of justice in the morning
speaking of which
deadpool was awesome!!!!
I saw it last night
 
Either that, or they deleted their own account. And if that's the case, I'm a little bit upset...
 
Hiding the evidence of handing in your code verbatim :)
 
12:39 PM
Exactly.
 
this is why I get stubborn with this kind of help. I've seen this happen so much. Even when I was a student
I remember being approached in the labs "Sorry to have to ask, but I was really busy with other assignments...can you email me your lab when you are done?"
OH SURE BRO! YEAH!
 
Ok. According to this Meta post, users can't delete their own accounts, so I guess a mod did it. meta.stackexchange.com/questions/131665/…
 
ok good
 
But I'm a bit confused, since the original account still exists: stackoverflow.com/users/6039181/humzah-mohammed I guess I can ask Jon or Martijn about it next time I bump into either of them.
 
maybe the decision was to get rid of the duplicate account stating to not do that, and give leniency to let them keep their original unless user commits another violation
I'm totally BSing right now...I have no idea what I'm talking about
 
12:49 PM
OTOH, according to this, it looks like you can request deletion on your account "If your account has never voted or posted more than once". And I guess that process may be automatic, which is why it says it was deleted by Community.
 
I doubt OP knows how to do things like that
but you never know
 
I don't like to annoy mods, but if this is a self-vandalism thing I guess they'd like to know... so I'll ping Jon.
@JonClements: Can you tell if this is an attempt at self-vandalism: stackoverflow.com/q/36261491/4014959
 
morning everyone
 
OTOH, maybe I should've pinged Martijn: I just noticed that he converted the other answer to a comment after I wrote my answer, so he's somewhat familiar with the question.
Hi, corvid.
 
cabbage
 
12:58 PM
@PM2Ring looks like Martijn's doing some tidying up around that user :)
 
good
that user really bugged me
 
Cabbage!
 
@JonClements Ah, ok. It's just a bit annoying to lose 30 points like that; I lost 20 points earlier today due to account closure.
 
@poke cabbage
@PM2Ring This is what is annonying; Forget 30 rep, you lose a lot of your productive time
Given that the account is destroyed and they can't vandalize again, Can we un-delv it?
 
I guess we can try...
The undelete vote appears to be accepted.
 
1:02 PM
Post-vacation-cabbage.
 
cabbage Thrappuccino
@PM2Ring needs one more tho
 
Hey poke! Would you mind dropping an undelete on this: stackoverflow.com/questions/36261491/… ?
 
@PM2 done
 
Thanks, Fizzy!
 
Once again, Fizzy saves the day.
 
1:06 PM
Search deleted:1 and find many of your answers that are deleted due to account closure :)
 
Oh sorry, you didn’t ping :P
 
Hey @poke!
 
Well, I didn't want to annoy you. :)
 
You don’t annoy me if you ping me!
 
Cbg, Martijn.
 
1:09 PM
So, I have a very serious question for you guys.
 
Challenge considered...
 
Just what kind of person would dumb-ify quotation marks?!?!
 
Must resist saying Don't begin question with a preamble :P
 
@BhargavRao I guess I can cope with lost answers due to accounts being deleted by the mods, but it can be annoying, eg when you want to link to an old answer and discover that it's vanished.
 
Yep, True. Happened to me once
 
1:13 PM
@PM2Ring never dawned on me that the rep was lost...that is crappy =/
 
@poke Deleting them from code I can understand, but from text? That's just weird!
 
@idjaw 60 days or earlier and score greater than 3, rep is retained
 
@PM2Ring I was kind of never more offended by a edit suggestion on one of my posts… :/
 
@idjaw Well, that helps prevent people doing crap with sock puppet accounts etc, but as Bhargav said, there are various exceptions.
 
the post is back (or did we know that already?)
 
1:14 PM
(which is kind of sad, if you think about it, that I take proper typography so personal xD)
We did @idjaw
 
late to the party :P
 
:D
At least you’re here now!
 
@idjaw Yeah. Bhargav, Fizzy and I undeleted it.
 
puts on party hat
 
And I gather that Martijn has no objections to the undeletion. :)
 
1:21 PM
@Morgan'Venti'Thrappuccino how was the vacation
 
So for my planned canonical post "how do I put characters anywhere on the console?", I downloaded the third-party library unicurses. I was going to add a paragraph to the answer saying "the advantage of using this is that you have a consistent interface across OSes" but it turns out that unicurses has a quite different interface from curses.
This annoys me. Now I can't have that paragraph.
Compare:
import curses
window = curses.initscr()
window.addstr(5,5,"Hello, World!")
window.addstr(6,5,"(Press any key to exit)")
window.getch()

import unicurses
window = unicurses.initscr()
unicurses.mvaddstr(5,5, "Hello, world!")
unicurses.mvaddstr(6,5, "(Press any key to exit)")
unicurses.getch()
 
@idjaw It was good, went and saw a bunch of great museums and went to my first tiki bar. How was the rest of your Seattle trip?
 
@Kevin You’re still working on that post? I thought you have given up by now :D
 
Shockingly no. I've written code samples for almost all the approaches I can think of.
 
@Morgan'Venti'Thrappuccino Seattle was awesome. I love that place. One of the micro-breweries we went to had a school bus transformed in to a kiddie jungle gym. It was sooooo awesome
 
1:25 PM
Crazy
 
@Kevin That is annoying. But I guess that unicurses is actually more consistent with the C interface: linux.die.net/man/3/mvaddstr
 
@idjaw That's awesome!
 
Crazy and admirable.
 
sibling rivalry story: Our daughters soother's kept going missing....no idea what happened. Just caught my son throwing one in the garbage, and it clicked...he goes to the kitchen a lot when he takes one of her soothers away....My son has been throwing away her soothers...
 
I have: curses, ANSI escape sequences, interfacing with the windows api (both with pywin32 and ctypes), colorama, unicurses. Still working on the "not technically a solution"s, "use \r or \b" and "use a GUI instead, man was not meant to move the cursor in the console"
 
1:27 PM
@idjaw Soother?
 
A pacifier (American English), dummy (United Kingdom, other Commonwealth countries and Ireland), binky or soother (Canadian English), and teether (Philippine English) is a rubber, plastic, or silicone nipple given to an infant to suck upon. In its standard appearance it has a teat, mouth shield, and handle. The mouth shield and/or the handle is large enough to avoid the danger of the child choking on it or swallowing it. == History == Pacifiers were cited for the first time in medical literature in 1473, being described by German physician Bartholomäus Metlinger in his book Kinderbüchlei...
 
@idjaw It’s just for her best, he wants her to grow independent!
 
geez Morgan...stop Americaning
 
(I would have to look up both terms :P – I did look up soother, but I also would have to look up pacifier)
 
1:28 PM
@poke Good way of looking at it. We do want her to stop it soon...so looks like he is the one being more responsible
 
I must admit that I'd never heard the term "soother" used like that before, but it wasn't hard to guess. :)
 
@PM2Ring look what just popped up
should we just post our entire discussion as an answer? :P
 
@idjaw I love those answers where the author doesn't seem to know if their answer works
 
@PM2Ring Yeah, unicurses advertises itself as "syntax close to that of the original NCurses". I was hoping that meant "syntax identical to curses, whose syntax is close to that of the original NCurses"
But, nope.
 
“Close” seems to be such a loose term.
 
1:31 PM
Yeah.
 
hi
 
If you end up reinventing stuff, why not throw it all out of the window completely and come up with a nice pythonic interface?
 
your planned audience includes python haters?
 
Anyway to check if a computer is compromised after my parents allowed a random person to take over their desktop?
 
@paul23 I'm not a professional, but I'd just reinstall everything (by which I mean OS)
maybe even throw out the HDD:P
 
1:33 PM
Probably because it would be a lot of work. Curses has a pretty big interface.
 
@AndrasDeak well other than that. And even then: boot virusses
 
dunno
but you should treat the PEBKAC too, if you can
 
Tangentially related. (nsfw language)
 
@AndrasDeak Was that directed at me?
 
Well then I'll just tell them: go to a computer shop..
 
1:35 PM
Well, it is one reason not to come up with a pythonic interface ;-)
 
"cba" to reinstal everything for them.
 
@poke yeah, but I was only guessing:( I don't actually know .*curses
 
Well, if you create a Python module that uses ncurses on the low level, you are targeting Python users, so not sure why you care for Python haters then :P
 
@paul23 did they understand in hindsight where they made a mistake?
@poke you can never know;) But OK, I understand
 
But yeah, I agree. Designing an interface is hard. My point was just that if you end up doing things differently anyway, then you can just make it very different and more native to the target environment getting rid of the implementation details of the library.
 
1:38 PM
@AndrasDeak Well yes, trusting someone who told them they had a virus.. Even though they knew their IP address.
 
harsh truth
 
@paul23 didn't the phone-call-from-MS raise flags?
the same could happen with e-mail phishing:S
 
If I had a hundred times as much gumption, I'd fork unicurses and make its interface identical to curses'
 
I get bunch of email from paypal to verify my account details...
 
1:39 PM
@AndrasDeak Nope apparently this happens a lot to my dad during his work hours, where it is legitimate support from microsoft.
 
It doesn't look like it's updated in a couple years so I don't think the author would mind...
 
@paul23 eck
 
They made a vow to never use computer/internet to share bank information or personal information.
 
that's half a success:)
 
@AndrasDeak Well this is actually quite common you know in a large company that you call the ICT and they post you through to someone from microsoft.
 
1:41 PM
yeah, I figured
it's just much harder to distinguish between these scams and legit calls:/
if all calls were scam, it'd be piece of cake
 
My parents are both 60+ now, so they're from "just before" the computer generation. And quite the digital analfabetists...
 
yup, I know what that's like
 
Yet they're active enough to still have to use it XD.
 
Teach them python programming, That's the best you can do :)
 
or using linux
 
1:43 PM
Yeah, W/O GUI
 
when someone calls you that your windows has a virus...easier to realize something's off:P
 
Actually I probably have to teach them python/matlab (dad got fired this year, but still has to bridge till his retirement at 68 with a new job)
 
And nowadays each job in the scientific world expects you to know matlab/python(numpy).
 
I think Check if data is proper English is about to get a call from the "limiting yourself to ASCII will lock you out of a global audience" brigade
 
1:44 PM
@paul23 err R?
 
tell them to drop in the Matlab & Octave room if they need any help;)
 
@BhargavRao Actually I've seen that very little, only in the medical world to be frank.
 
@paul23 That's coz R is only for the elite
 
But my dad was offsetted by the fact the person talked very well English. And knew their IP, version of windows and even(!) the city they live in.
 
1:46 PM
Oh and it was a young female.
 
@paul23 tricky
I guess once they know IP, they know the city too
unless geoIP is way off
 
@Kevin And of course they don't actually mean English, just ASCII.
 
Yea it's all kind of easy information to retrieve using a simple website. But very few people actually realise this.
 
@BhargavRao I heard a lot hate towards R.
 
@khajvah Bring them to R Public room, I will show them what to hat ... rolls up sleeves
 
1:50 PM
:)
I wish I did something scientific so I could argue about it.
 
yeah R is for hipsters who feel too posh for numpy;)
(I've never actually used R, but that never stops me from developing primal prejudices)
 
Meh I had to learn it (R) for my brother the other day to explain a few things.
 
learneR
 
@paul23 I read that super out of context and was just thinking why “learn it” is a reserved trademark (as in “learn it®”)
 
I did a little Octave for a Math class
but never done anything serious
I didn't really like it though
 
1:56 PM
I like python + numpy more because it is based on a general purpose language; and R seemed to be only geared for data analysis, leaving other things hard to do.
 
I did R at uni, it was powerful but also a bit unintuitive
 
you did R at uni??
 
yup
 
I had the choice to do R
 
what magical school did you go to that did something like that
 
1:56 PM
but chose octave
 
Maybe unintuitive was indeed the correct word for it.
 
Don’t think it was very magical…?
 
wait...@poke was this for your master's?
 
@idjaw Bachalors numerical analysis course used R/Octave/Matlab/Mathematica
 
@idjaw @poke is "The Master Of Bunnies" :p
 
1:57 PM
I had one course with it during my bachelor’s and another one during my master’s where we used it.
 
But I'm a technical person, and in the technical field it's all matlab everywhere. - Changing slowly to python.
 
Although - having a "Bachelor's In Bunnies" sounds more cool
 
I learned it in statistics and probablities, and used it again in a data mining course
 
that's awesome
 
@JonClements I like Bunny Bachelor?
 
1:58 PM
I use python on a daily basis nowadays for uni stuff. Its easier to just use python to calculate things than type the function in my calculator/wolfram|alpha.
easier to check if you made a typo :P
 
@paul23 do you use sympy?
 
I've used it once, but can't say I know it well enough.
 
On the downside, I never did anything Python-related at uni
 
I optionally chose PHP in university
6
....
 

« first day (1990 days earlier)      last day (2944 days later) »