« first day (2171 days earlier)      last day (2780 days later) » 
00:00 - 15:0015:00 - 00:00

This OP clearly has a different definition of "minimal" than the one in my dictionary. :) stackoverflow.com/questions/39687785/…
 
user6568562
minimal !
 
user6568562
Hey PM2 [ :
 
Damn. I voted on that dupe before I noticed that the was missing. :(
Hi, random.
 
user559633
pro tip: don't run a coffee machine without the coffee pot in place and leave it alone for 15 minutes
 
3:23 PM
@tristan Sounds messy...
 
user6568562
I'm pretty sure that black shade is blending smoothly with your furniture
 
Whatever, it'll be closed anyway. I guess canonical should include import some.package example with error messages from Py2 and Py3, but requests.compat seems like a not very good example.
 
user559633
only took me 45 minutes to remove coffee from drawers, under the stove, the floor, etc.
 
user6568562
Alala : /
 
@ŁukaszRogalski Feel free to add another answer to cover more general cases. I'm sure idjaw won't mind. :) FWIW, I got an upvote a few days ago on this one I answered a year ago.
 
3:32 PM
re-cabbage
Wow, @ŁukaszRogalski is here! Praise be to the God.
 
@BhargavRao should I be offended? flattered?
 
Pick one. ;)
I usually find you in the dupe review queues. Not in chatrooms.
 
@ŁukaszRogalski Don't worry about Hrrundi Bhargav, he's just trying to be nice. ;)
 
user559633
I have no idea that's going on here, but welcome, ŁukaszRogalski
 
Hopefully I can do both :)
[dupes and chatrooms, not offended and flattered]
 
3:38 PM
@ŁukaszRogalski Joking apart, I've found almost all of your possible dupe votes as hammer worthy. You are one of the very few (perhaps 4-5) whose targets are so perfect that I don't need to look twice (Strangely, I do look twice, though).
 
@BhargavRao Make yourself useful & hammer that dupe that Łukasz posted. I've added the tag.
 
No votes left. I had to go through a few weeks of CV4s. So, blew all of mine on them.
 
Bugger
And Antti seems to have drifted away. Oh well, someone will close it, eventually...
 
chipped in; 1 more to go
 
@BhargavRao Which reminds me, I haven't visited SOCVR for a while.
 
3:40 PM
he did that in SOCVFinder, probably:P
 
@PM2Ring Join us in SOCVFinder too. Python's a bit down these days
Ah, @Andras has mastered the ancient arts of mind-reading.
 
sure, that's what happened:P
 
@BhargavRao I'll try to remember to do that. Lately, it's been hard enough just keeping up with what's happening in here. I like to read (or at least skim) the transcripts.
 
Sure, Join whenever you're free
 
Rhubarb
 
3:53 PM
Rbrb \o
 
Hi
 
Hello
 
How can I define this condition: If all numbers in a list are 0 -> then do ...
?
 
all(v == 0 for v in listName)
?
 
thanks, working
 
4:09 PM
@PM2Ring I took care of it.
 
I think I linked it before, but the OP said that the missing key= was a typo
 
@MattDMo too bad, you were the 5th guy :(
 
well, better late than never :)
 
user6568562
In some textbooks, I often encounter the expression streamlined representation, as in : Tuples' instances have an internal representation that may be more streamlined than that of a list. I tried to search the subject, but obviously I lack some essential keywords.
 
user6568562
I wonder if anyone can help clarify a bit what they mean by a streamlined representation [ : And as opposed to what other forms of representations
 
4:24 PM
Anyone?
 
user559633
@ChiragRajput What does this have to do with Python?
 
?
 
Not with only python. we can use it's API on any plateform.
 
user559633
Yes, great, but why are you asking about that in here? What's your actual question?
 
Actually i have to use AWS cloudfront RTMP video link which is stored in AWS s3 bucket and all the content in that bucket is private.
 
user559633
4:28 PM
@ChiragRajput You are in the Python room. Ask a Python question.
 
Okay
Soory!! But there is no room for Aws
 
user559633
Doesn't make it on-topic for in here. I'd ask a question on StackOverflow.
 
proceeds to spam other rooms
 
AWS is not on-topic the main site too. So you'd better find help in some other place.
 
Sure.!! And sorry for any inconvenience.
 
4:34 PM
@ChiragRajput Just note that if you add the same messages in multiple rooms, they'll get flags and you might get banned. Take note.
 
user6568562
My OCB is kicking in I feel mankind should either switch to saying : clydes, or to houd.
 
user6568562
> The cloud doesn’t have to be cloudy.
 
user6568562
Nevermind, just set me on fire and carry on.
 
The cloud can be sunny
 
cbg all
 
4:47 PM
cabbage
 
user6568562
Cbg [ :
 
user6568562
@tristan Are you setting up or what ? I'm already in position
 
i have resurrected my dead macbook air /necromancy
apple refused to do a battery repair as I'd had a 3rd party repair done a while ago (because, y'know, I couldn't get an apple repair slot :-/ )
so I got a replacement for the replacement battery, bit of open mac surgery, and woo.
 
user6568562
Apple is jealous like that
 
4:49 PM
Such a stupid policy though. Even if I have had a3rd party repair botch job done (it wasn't a botch, just the battery failed), it's like, shut up and take my money to fix it, y'know?
 
The mention of macbook reminds me of this
They said it can be cleaned using water i.stack.imgur.com/KiKdV.pngBhargav Rao yesterday
 
user6568562
Oh, I know. I have some painful memories from when the ipod classic wasn't retro yet
 
user6568562
@BhargavRao Much Photoshop wow job, that shadow would've made Thomas Young so proud : D
 
lol
anyone know - is there a way to automate building a mac? tried doing the migration assistant, killed it after eighteen hours, and have just reinstalled everything manually
would quite like to just pip install -r macrequisites.txt equivalent
 
user559633
4:56 PM
@randomhopeful Yep, will be starting on time
 
user6568562
@tristan Yayah !
 
oh, nice, will have a look at that. :D
That's a lot of config!
Like it.
 
@Antti police suspects that the targets were the police officers (not them specifically, but there has been a patrol on that route for more than a year)
 
damn, those refugees</sarcasm>
 
5:00 PM
right:P
I already heard some crackpot theories that the government did it as campaign (...). Definitely not the case, although I can easily imagine some right-wing radicals to do the same to stir shit. Hopefully not the case, but imaginable.
I find it more likely that the police is wrong/withholding information and one of the officers was the actual target for personal reasons
it was a home-made nail bomb put in front of a store that has been vacant for more than a year
 
jees, I hadn't seen that.
:( that's bleak.
where was it Andras?
 
@Withnail it happened at half past 10 PM yesterday, so not the usual kind of terror attack
on the Körút (where the big yellow modern trams go)
 
oh yeah :-/
oh man, I started reading the comments on an article about that. mistake
 
> I started reading the comments
always a mistake:P
 
yeah :(
 
5:08 PM
Hello to all! May I ask something realy fast about xlrd or should I make a question in the main site?
 
ask fast :P
 
@BarnardMikey Read our FAQ at sopython.com/chatroom, If you feel that it's relavant then ask!
 
but you don't need to ask if you can ask.
^^ that
 
copying an excel file with python and xlrd with copy() and pasting some info in the cells, the new file has header and footer info when the original did not have. How can I avoid this?
 
hm, for that you probably need to put a question up tbh, need to see the code and in/out.
 
5:12 PM
code is 3 lines only
and in the code there is nowhere header or footer info so I guess xlrd add these by itself?
I was reading xlrd documentation but there is no header or footer info ( only in one dump( ) function but I am not using it )
I will do a question then in the main site. Forgive my noobish mistakes
 
No worries. :)
 
Thank you and have fun now :)
 
Anyone had any problems with sierra blocking installs of things? Both the dropbox and spotify installers haven't been able to connect, but there's no firewall running?
Weird, a random number of resets appears to have 'fixed' it.
 
5:29 PM
I find it hilariously sad that I should provide my work's cumulative impact factor for a domestic project I'm involved in
the nonsensicalness of that is so deep
 
@JonClements Heya Puppy :-)
 
6:03 PM
My internet be down
 
@RobertGrant said nobody with downed internet ever;)
 
Huh, at least the Sky support page shows there's a problem in my area
 
Sky is Skype when the pee is silent?
 
Sky are the people who got MS to change the name of SkyDrive to OneDrive :-)
Would be amazing if they got them to change Skype to Onepe, but that seems less likely
 
haha, I'd sign that petition:D
 
6:12 PM
:D
Well, I got elkstack reading my log files and visualising log lines classified by severity, which is a good start!
 
I asked 10 mins ago about headers and footers in a copied excel file using xlwt ( not xlrd ... sorry my mistake! ) xlwt adds header and footer information in the copied file. I found out why and how can someone avoid this behavior
Workseet.py ( in xlwt module ) has hardcoded information about header and footer
Even using the sheet.header_str = '' was not working
 
@BarnardMikey thanks for the followup; no doubt will be useful to someone!
You could also ask the question on SO and then self-answer, as it sounds like a useful discovery
 
I can answer my own question? Well ... that sounds a bit ..odd right?
 
@BarnardMikey no, it's fine. SO is actually more about creating a large body of questions and answers than anything, and self-answering achieves that goal. Just be prepared to accept someone else's answer if it's better than yours :D
 
6:17 PM
Thank you very much Robert Grant
And yes ofcourse I will accept any better answer than changing the source code of the xlwt module!
 
Another post for @idjaw's canon :) stackoverflow.com/q/837916/4099593
 
@BarnardMikey there's even a feature in the GUI, you can tick a box when asking a question that says "answer your own question", then you can write up the Q&A simultaneously
but note that you should make sure that the question is non-trivial and doesn't have an answer already on Stack Overflow (I assume you've already done this by now, I'm only saying this now for the sake of completeness)
and you can only accept your own answer after 48 hours, don't be surprised:)
 
I am new here. Thank you all for your patience and the valuable info.
 
Welcome:)
 
stackoverflow.com/questions/39690259/saving-all-input too broad, basically asks 'how to write keylogger?'
 
6:25 PM
yeah, we don't like those
 
That moment when you really need to cv but you don't have votes :(
 
-6 and cv4 now, won't take long
with 2 comments asking about a keylogger:P
 
@ŁukaszRogalski Just have a quick look at rule 3 and 4 here sopython.com/wiki/cv-pls
 
he didn't violate those, did he?
 
Naw. Those are for no mcve
 
6:27 PM
OK then:)
Especially that potentially-malign posts like this should be exempt from any grace periods
 
Read it today, but thanks for url
 
It's struck at 4
 
@BhargavRao it's all your fault:P
 
cbg All
 
cbg
 
6:31 PM
cbg
 
@AndrasDeak hey , how 'r you man ?
 
fine, thanks
 
That's good news ^^
 
6:34 PM
cbg
 
cbg
 
cbg
 
cbg
 
user559633
6:39 PM
cbg :)
 
6:55 PM
@PeterVaro yt suggested it a while ago, I listened to it without listening, gonna listen now, thanks for the link.
 
@BarnardMikey Glad you find the answer, nice debugging. :)
 
I am still here?
Oh lol ... leaving :)
Thank you all again
 
user559633
anyone want to play/stream some FTL?
 
would love to, but running back and forth with kids today. Flying solo
 
7:21 PM
@AndrasDeak I'm starting to hate this project I'm working on. I was so close to a really great algorithm but it just doesn't work with complex numbers and I now need to start from scratch
 
@MikeVandenberg that sounds a bit odd
Why wouldn't it work for complexes? Or how doesn't it work?
I'm sorry to hear that, anyway
 
I was using OpenCL 2.0 builtin work group functions but they are only overloaded for native data types
and I have no idea where this header file containing the definitions is or otherwise I'd go try and add it in
 
And can't you extend it for yourself? It sounds open enough;)
@MikeVandenberg are you on linux?
 
no win10
 
anyway, opencl sounds like something that is on the web
maybe the standard is open..
 
7:27 PM
I've found all the documentation and specifications but no mention of where this .h file is living
 
did you try to "find file"?
 
yeah searched all my drives and no results
 
interesting...
does that ^ help?
 
This needs a bit of cleanup stackoverflow.com/a/39690908/4099593
 
@BhargavRao s/cleanup/delvotes/
a cleanup would make it a code-only pile of poo
 
7:31 PM
Hmm, Yeah
 
Nah those files don't contain the function. I'll keep digging through
 
We need moar 20kers
 
I'm yet to hit 10k :(
 
:(
 
@MikeVandenberg are you sure? Don't forget that they use fancy preprocessor directives to dynamically generate classes of functions for each type. What are you looking for? Those are the official OpenCL headers, so I'd look real hard first:P
 
7:33 PM
@AndrasDeak My next attempt was to stop beating around the bush and looking for already implemented algorithms and just hard code one but I'm hesitant. Mostly cus I don't really know the best way of going about it.
 
not reinventing the wheel is always a good idea:)
 
I'm looking for either a header file called opencl20_builtins.h or the function work_group_reduce_<op>
at least that's what PyDev is reporting as the file that contains the candidate functions
 
@ŁukaszRogalski Got at ye pace. You're doing a great job. :)
 
Context for the algorithm I'm trying to implement: stackoverflow.com/questions/39683358/…
 
@MikeVandenberg shouldn't that header be present somewhere explicitly?
 
7:35 PM
c:\workarea\16.40.2011\stream\opencl\compiler\clc2\ocl-headers\build\wNow64a\B_r‌​el/opencl20_builtins.h
That wasn't intended to be a shameless plug to get views
 
@BhargavRao too many close votes, not enough easy rep from quick responses :( /s
 
It's C, so all you'll get here are downvotes:P
 
user559633
@MikeVandenberg It's fine -- part of the conversation
 
@MikeVandenberg Ah, Did not mean that. Sorry.
 
@MikeVandenberg so...is that path not present?
 
7:36 PM
No worries
 
not even remotely?
 
user559633
not even remote worries
 
It doesn't seem like it. Even if the program is being actively debugged, I can't find any part of that path
 
no wonder it's missing:P
 
7:40 PM
but the program compiles when I use a supported data type
and successfully computes the answer
 
cbg all
 
cbg
@MikeVandenberg yup, I give up right now:)
 
cbg
 
Added the code I have so far, in addition this is not related to academic work, I need to do this for a project, so it doesn't matter where the code comes from. — Brian Kubricky 14 mins ago
^ really?
 
7:42 PM
So yeah... I'm gonna go see if I can start developing the algorithm from the ground up and avoid builtins so that I can explicitly handle complex number support
which I really wish was native
 
@ŁukaszRogalski Bah, Forget about rep atm. Answer the good questions and you'll get a lot of rep after a few days. Even if we FGITW and answer typos, they'll be closed and deleted as such. :)
 
user559633
I know the NLTK package could probably be used here but I'm pretty new to Python/text mining and don't really know where to start...so I decided regex would be less confusing. somehow.
 
Hi! I don't know how to do text analysis - can someone do it for me? I do know how to count words - sorta - so that's like 90% of it, right?
 
user3047181
@JGreenwell you probably want to like split by space and then like iterate the array of words i think
 
user559633
@MeltyButter Sorry, we were talking about a question on the site.
 
user559633
7:48 PM
splitting by space is an okay way to count words, but doesn't give you a whole lot. (also misses out on any text that's not grammatically correct, e.g. "hey...how are you?")
 
....awww, dang it! I hate when I see grammar errors in my comments after the edit time
@MeltyButter also consider stop words, punctuation, word grouping, etc...and that would only be at the counting stage
:)
 
@JGreenwell delete, repost:P
 
nah, its minor......just staring at me....taunting me.....
 
user559633
FTL stream time
 
@MeltyButter we were speaking about this post - fyi - but also just the fact that those types of questions come up in NLTK tag a lot
 
user559633
7:52 PM
@JonClements did ES start behaving?
 
I wonder if someone will answer that (one could just copy directly from the NLTK book or sklearn docs or some NLP textbook without using a library or ...) and then my flag will get declined/disputed cause "its not too broad" cause you can answer it
 
8:12 PM
@JGreenwell self-deleted
also, close as duplicate of the NLTK book.
 
ran into a hilarious malware-propagating attempt
it's a wikimedia-esque site that ultimately wants me to run an automatic tool to make my life easier solving my problem
> If you have I get an error when I download a torrent at isohunt. then we strongly recommend that you Download (I get an error when I download a torrent at isohunt.) Repair Tool.
 
well, your computer shutting down would make it impossible to do work and give you an excuse to relax cause you can't do anything else - I guess that's easier from a certain point of view
 
(let us not discuss how I ended up on that site)
 
8:57 PM
Rhubarb
 
9:20 PM
@idjaw Thanks. I have managed to get the Graph using Bokeh and also managed to have the date correctly at the x axis as index. I have another question - How can I smooth the graph? I have tried the same method as I did on the matplotlib using Scipy spline and it did NOT effect the graph. Can you or anyone else assist me with the graph smoothing using Bokeh? Thanks
 
@AryeGuetta As mentioned before. I've never used those tools.
 
9:39 PM
@idjaw Thnaks
Hi Everyone - I have just installed Bokeh and have a graph of data using datetime connected to it and plot the Graph OK with x as date and time. I have a question:
How can I smooth the graph? I have tried the same method as I did on the matplotlib using Scipy spline and it did NOT effect the graph. Can anyone assist me with the graph smoothing using Bokeh? Thanks
 
10:08 PM
class Solution(object):
    def wordPattern(self, pattern, str):
        """
        :type pattern: str
        :type str: str
        :rtype: bool
        """
        dict={}
        stp=str.split(" ");
        print stp
        lis=list(pattern)
        print lis
        for i in range(0,len(pattern)):
            print str(lis[i])
Line 14: TypeError: 'unicode' object is not callable
error
?
 
The name of one of your arguments is str, it shadows the str class
 
you're shadowing the built-in str. Change your str for something else, like s. Try again.
kevin'd
 
but in leetcode site they give us
class Solution(object):
def wordPattern(self, pattern, str):
    """
    :type pattern: str
    :type str: str
    :rtype: bool
    """
 
That's great...but I just copy pasted your code, replicated your problem, changed the str to s and your code works
and they should not be doing that either
 
ok
ya it worked thanks
:)
 
10:12 PM
Dang it. Why is this being down-voted so much? — Mr.goosberry 1 min ago
This is a valid question actually :-/
 
Ouch..
that's rough. But yeah...I think it was the hostile environment mention that maybe triggered some people to....sigh...act hostile.
...
 
I didn't like the tone of the answer and downvoted it, but -6 is a bit too much
 
Wes
\o
 
o/
@vaultah I think balance can be well restored if that question goes away quietly in to the night...
Funny enough, the question did not receive a single vote.
it was all directed to the answerer
 
Yeah, it seems that I started all that by misinterpreting the meta commentary in that answer
😕
 
Wes
10:19 PM
can someone point me out to the "magic method" (right?) that transforms automagically getter methods in class properties? (right? 2) can't find it. i don't know python, just need it for reference. thanks
 
are you looking for descriptor protocol?
 
Wes
could be. is it possible that python does that automatically in some other way? like, you define setFoo(one) and you'll be able to call it like obj.foo = one
 
Are you looking to use the @property decorator (which is documented in the descriptor doc linked by vaultah)?
 
Wes
10:35 PM
yes, i think that is it. thank you very much
 
okay +2/-5 isn't that bad, but I added a sorry comment anyway
 
@Wes here is a really good answer by Martijn Pieters that will help stackoverflow.com/a/17330273/1832539
 
Wes
can i call that both ways? obj.foo(val) and obj.foo = val ?
perhaps that is a python 2 thing?
sorry really no clue about python :P
 
=/ I strongly suggest familiarizing yourself with the fundamentals of Python before jumping in to a topic like that.
@Wes in the most basic form, ignoring descriptors for now. If you have an instance of a class Foo, f, and you are simply trying to add a new attribute to it...then f.bar = 'value'
>>> class Foo:
...  pass
...
>>> f = Foo()
>>> f.bar = 'value'
>>> f.bar
'value'
 
10:54 PM
Guys, is this a Flask thing pastebin.com/vHkzZH7G ?
If I remove all Flask-related code the import works
Oh yes, it also works if I just disable the reloader
 
I remember there being issues if you used python -m with the reloader.
 
Should I file a bug report?
 
The new way to run apps is the flask command, for reasons like these. Pretty sure there's a bug report sitting around already.
 
okay, thanks davidism :)
 
Yeah, -m does weird things to relative imports. Here's another possibly related one: github.com/pallets/flask/issues/1246
I think there's another one about the reloader not being able to reload with the same Python args because it only uses sys.argv.
 
11:04 PM
-m is supposed to make relative imports work :/
 
If you use FLASK_APP=app.app FLASK_DEBUG=1 flask run instead, it handles importing the app for you, but it's new and not documented as well as it should be.
 
user559633
o/
 
Wes
Not trying to learn python. I'm actually looking for references for a question I want to ask on programmers.SE / discuss with friends, which is roughly "are properties (not fields) a bad idea?"... kinda a religious question :P Specifically I have a problem with setters... they can take only one argument, regular methods may take more, which makes them more flexible.
For example, I had foo { get; set; } but then I wanted to add an optional parameter to the setter, so now I have both the setter .foo and .setFoo(val, optionalParam), which makes the former completely redundant. Getters are ok though :)
so yeah i was thinking to avoid setters entirely and looking for precedents in lectures/programming languages
 
user559633
11:21 PM
I think the answer depends entirely on what you're trying to program, in what language, and how you expect to interact with your code.
 
well a setter is only meant to set one instance variable but it can still set multiple ones depending on the language (like Java can but its not recommended)
 
user559633
You could also take in a dictionary, a list, or any object on the setter and expand it to set multiple instance variables
 
C# you can pass in tuples
ruby you could pass an array and do some magic (but I don't know near enough ruby to really describe this)
 
Wes
@JGreenwell is it possible to overload properties in java?
 
Python might not be the best for this discussion: there are no private attributes so it's really a matter of courtesy to use getters/setters when applicable
 
11:28 PM
you could, but why? Use a builder pattern or constructor that is what they are for
 
if you have privates you have to expose those through setters/getters if you want to be friendly to the programmer
 
user559633
Or setters/getters for added convenience/increased tolerance on what you accept
 
checking and the like?
 
user559633
sure, and/or for just providing an standard interface to protect users from variable renames/etc
 
even if it is a subclass - which could use @Override - I'd still just use super.setFoobar(classblah); and just do some post setting and pre-setting processing
why do I keep ending up answering Java questions in here?
 
Wes
11:31 PM
lol
 
also if the super class set its method/fields to private and you only have access to the setter - your SOL either way (and this is by design cause this would break all the contracts between the classes and require straight up String field name lookups)
 
user559633
well, luckily, if you're using java, you can use object change requisition form OR-349B-A and submit it through your project management workflow
 
segfault
 
user559633
java: "if it's so bad, why haven't i missed a mortgage payment"
 
11:37 PM
The Ariston of programming languages.
 
user559633
I love the number of patterns that exist to work around fences put up by a language.
 
user559633
this reference --> *
my head -> O
 
@JRichardSnape it will sire Plato?
 
Yeah, probs UK specific and also old. Famous ad: "there are 5 million going strong."
Hang on
 
Wes
11:40 PM
that return this; makes me cringe a bit
 
One example:
There was a series. Also "10 thousand people can't be wrong". And so on.
You now have an insight into the contents of my brain-attic.
These are the less weird examples.
 
Wes
thanks for the help and for the chat folks. gn \o
 
that returns this makes perfect sense in English: I approve
 
Wes
:P
 
Night @wes.
 
11:43 PM
@JRichardSnape The Flintstones vitamin of washers....only just plain weird
 
> just plain weird
Yep, I'll go with that.
 
good night, rhubarb
 
o/ @andras
 
@AndrasDeak you still here? I'm losing my mind. I need another set of eyes
 
nope, off to sleep:)
 
11:50 PM
dang alright
 
night @AndrasDeak
 
00:00 - 15:0015:00 - 00:00

« first day (2171 days earlier)      last day (2780 days later) »