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

4:00 PM
Why QuickTime Can't Play MP4?

Acting as a video container format, MP4 is the package and can contain video and audio components encoded with different types (codecs). However, QuickTime just supports a few video and audio codecs in MP4 format. That is, if the MP4 video contains QuickTime unsupported audio or video codecs, QuickTime will refuse to play this kind of MP4 files.

How to Play Any MP4 in QuickTime Successfully?

In order to solve MP4 won't play in QuickTime issue, we had better convert QuickTime unplayable MP4 to QuickTime supported format.
 
DSM
Yeah, looks like spam to me.
 
it is spam
that is why it was in the lq in the first place
it is not the clearest one admittedly :d
@fhdrsdg there is a reason why things are in queue (except if they're audits) :D
thus open the links if they're there
 
Alright, so that was it. Thanks for checking it out.
 
see how the text is copied verbatim from that page :D
 
I (too quickly) classified it as a wrong answer with ugly formatting and bad language which get into the LQ queue often enough but should only be downvoted and not deleted.
You're right. If there's a link, I should check it
 
4:06 PM
especially if it feels like the text has not been written to that answer
 
> idk how to do it Pleaz help its urgent'!! thanks
haha
 
Possibly a troll; I didn't flag it as such but worth considering given the question.
 
Yeah from that question
 
Yeah, looking at that link it was a clear spam answer, should have opened it. Thanks very much for the guidance.
 
but i mean i like google the exact text from their question ...
ok so not exactly in this case I googled "open finder from terminal"
maybe he didnt know it was called finder
 
4:09 PM
 
should that be iff?
 
@Kabyle please carefully read and fully understand skidmore.edu/~pdwyer/e/eoc/help_vampire.htm before asking another question in this room.
 
I learnt about closure attribute of function object that maintains outer variables defined in outer functions used inside a inner function. What is closure property of datatype here?
 
Starting to get ridiculous now.
I may try to contact a mod and see what can be done.
 
4:13 PM
yeah, that would be a good idea
 
TIL the solution to everything is bees
 
cbg
 
cbg @zachgates
 
lol at this guy who thinks he needs the circular imports in his module ...
i tried to tell him that usually meant he should refactor his code
but he said that that was not the case here
 
My ultimate frisbee team is having a discussion about haircuts, then someone posted this: youtube.com/watch?v=wUkKOnXMmGg D:
 
DSM
4:21 PM
You play Ultimate? Wouldn't have guessed that.
 
Yeah, I played on the B team in college, and I don't really take it seriously now, but it's really fun.
 
I'm looking forward to starting playing golf again once I've finished my PhD/have money.
 
That's something I should probably learn. How can I make secret business deals if I can't play a round of golf with some high profile contacts?
 
Exactly. It's a brilliant sport.
 
DSM
There was a networking meeting last year which I had to pass on because I don't play.
 
4:26 PM
I've been to a networking meeting in the past for it but they at least had things for non-golfers.
 
If only networking could be done with mini golf.
 
DSM
That would be a good sign that the people you're networking with don't take themselves too seriously.
Which would be a nice change.
 
I need to convince my GF to start playing so she can drive us to the course as I don't have a car enjoy it with me.
 
4:45 PM
Woohoo... I answered another question....! Yay me! Go puppy go! (Not sure it's the best solution, but it's different than the others!)
 
DSM
I like it the best of the ones posted so far because it's vectorized. I might have used pd.to_timedelta(df.days_delinquent, unit="D") instead, mostly because that doesn't hardcode type names, but it's the same idea.
 
Ahhh.... was trying to work out how to use that :)
 
DSM
There are going to be some pandas sprints at PyCon. I may attend virtually.
 
:O
@DSM do you have any of the details for them?
Found the sprints page but can't find anything to do with virtual attendance.
 
DSM
@Ffisegydd: not really, except that Jeff is running them M and T, I think. My "virtual attendance" was going to be limited to some emails and ticket watching.
 
4:53 PM
@61612 numpy in particular is probably worth your while learning. It's a useful library to have a basic grip of, as using it can speed stuff up.
Ah :( I thought you meant there was some form of web seminar thing.
 
DSM
Sorry to get your hopes up. :-) We can ask Jeff to turn a webcam on, I guess. :-)
 
Games is giving a talk at PyCon.
 
DSM
It's so close I should have gone, but the scheduling wasn't going to work (too many projects landing within +/- 1 week to take the risk.)
 
I have no idea how to close this: stackoverflow.com/questions/28969565/…
But it's yet another Heroku question. They're all suspiciously similar too: there are a bunch of others that mention "gunicorn not found"
I feel like I should just start using a "This isn't Heroku tech support" reason
 
DSM
I know nothing about Heroku, but I thought you didn't have a persistent state that you pip installed into anyhow.
 
5:02 PM
EuroPython is in Spain this year :( and PyCon UK hasn't been announced yet.
 
@DSM that's weird... I'm probably going mad... but didn't the Q you looked at, have a 600-ish rep user, with a proper name and picture? Now it's ~150ish with a gravatar?
Hehe: new variation of a title Why wont my program give me the error I want?.... makes a change...
 
DSM
Couldn't swear to it, but I think it was an autogen username.
 
Mind you... I have so many tabs open... I probably just confused it with another post I was reading or something
 
@DSM I don't really know Heroku either (and I should probably correct that), but from what I understand there is no persistent state but the requirements are installed automatically when the container is started.
If it's not installed, and the user says that the requirement is listed, then that really sounds like Heroku tech support territory.
 
DSM
So even if this was the syntax, and it worked, it still wouldn't help because it would install into a temporary space and then vanish. The user seems to be realish, though, in that google-searching the image finds a youtube user with a history.
 
5:13 PM
It would be much easier for a Heroku person to look at the app and tell the user what they did wrong, rather than us guessing at it. In fact there's a tutorial on Heroku's site about deploying a Flask app with a big "Report a problem" button at the bottom of every page.
It's suspicious that so many similar problems seem to be appearing more and more. Is there some common tutorial they're following that got something wrong or is outdated?
 
DSM
Dunno. The official docs seem to make sense to me.
 
> This question is off topic because it is a Heroku support request. Please use the "Report a Problem" button featured prominently in Heroku's Python guide.
I already cv'd as something else, but I think I'll use that from now on.
 
DSM
@davidism: while you're about, actually, do you have a recommendation for front-end JS frameworks which play nicely with Flask? Relatively few of the examples are heavy on the front-end shiny.
 
which is better, to have the controller/view/model in a single folder for each entity, or to have folders for controllers, views, and models?
 
@DSM what you mean? whats wrong with angular?
 
5:24 PM
I've only just started moving my application at work to separate API/frontend projects. We went with Angular, but I don't really do any of the frontend work. Mithril looks interesting.
 
@DSM Angular works well with Flask
 
We actually keep the frontend as a completely separate repo, the Flask API doesn't directly serve or interact with it at all.
From what I've heard on Hacker News, Mithril is basically a similar scope as Angular, but much more performant, whereas React is more focused on just presentation and not data handling.
 
Angular is mostly just appealing for making dependency management easier to handle
 
Elm is also looking pretty cool, especially if you need a lot of interaction and drawing.
 
5:27 PM
@davidism that debugger looks sweet
 
wouldnt it just interact with data through normal rest calls to flask backend? Im confused about what exactly angular and mithril offer that react doesnt i suppose
I havent messed with any of them enough to know anything
mithiril looks awesome fast though
 
Hello all. Does this answer warrant a "Not an Answer" flag? I read the Meta post about the flag but am still not sure whether this is an appropriate use.
 
it certainly doesn't seem like an answer imo
 
@JoranBeasley I don't know enough about them all to say, beyond the fact that React outright states that it's only the "view" part of MVC
 
yeah but i feel like the other ones are as well ... maybe im just confused ... its alright i havent done front end since image-maps were popular
@DSM this is a somewhat interesting article i have bookmarked from quora (even though quora is imho a low quality resource)
Interesting enough no mention of mithril nor elm
Mithril has now peaked my interest ... I am going to now be a front end master
 
5:37 PM
@Elizion It's a terrible answer, but it's an attempt at an answer... so NAA isn't suitable
 
What about "Very Low Quality"? It's pretty low quality...
Actually that brings up another point I wanted to make, which is that the Low Quality queue seems to have turned into a judgment about whether something is an answer or not, not whether it is low quality.
 
@JonClements Okay thanks, yeah I figured. And @davidism that actually looks pretty appropriate in this case, will flag.
 
ok theres a better answer there now ;P
 
5:54 PM
@JoranBeasley My angst from seeing that awful answer (to a pretty terrible question mind you) at the top has now gone away, many thanks :)
 
I tried to answer it, but that question is still really unclear, especially based on the comment the op added later.
 
Hi, how can i get routing like # in the url in Django. For example. /#example goes to views.index
url(r'^#home$', views.login, name='Later..'),
 
ummm that is not actually part of the route
that is know as a hash
I believe you can get at it through the request object ... but you cant really route on it
 
@JoranBeasley I think a pretty big part of it comes down to how you prefer to write it... a lot of front end frameworks go about things differently
 
yeah he is talking about django though specifically
oh that was in reference to my earlier quesiton i think
 
6:29 PM
hi Joran
@JoranBeasley can we gchat?
 
Ooo... Clarkson's been suspended by the BBC and cancelled Sunday's Top Gear apparently... apparently he got into a bit of an argument with one of the producers...
 
So I'm starting a new job on Thursday. I'd just like to thank you all for using this site which is a main reason of me becoming a better programmer :D
 
it is a very good site
where are you going to work at?
 
Ra'anana
Stealth mode company
 
good for you
 
6:48 PM
whats up amir?
 
hi
can we Gchat?
or skype
 
sure i guess whats your gmail acct?
ill send chat invite
 
amir.nakhostin@gmail.com
 
@Emyen you can't, the hash isn't sent by the browser to the server, it's a client-side thing
 
6:57 PM
too broad, unclear, needs code: take your pick. I went with too broad.
 
yeah, thought so
 
the upgrade runs perfectly @davidism But why couldnt open the app ?? Could you PLeaseeeee Help me — LiLi 2 mins ago
This user is so yamming annoying.
 
7:13 PM
@zachgates while I appreciate that you are getting involved, please try to use . Also note that we have some guidelines about what questions may be posted: sopython.com/wiki/cv-pls
 
ok, no problem
 
DSM
Aargh. After much wrestling with complicated equations, I go to implement them and realize that some of the terms should cancel. I don't trust my simplification so I get the computer to check it and I'm right. Finally I realize that there's a straightforward physical interpretation of the equation which means I should have been able to write down the answer immediately. :-/
 
What physical interpretation?
 
0
Q: python using argv for a simple function

Tom DI am a programmer new to python trying to write a simple test1() function that uses arg (or *arg) to print out how it was called using the "name" of the argument passed to it, not the content of the list or any other variable that I am passing. The following example: def test1(arg): print "...

lol :D
 
DSM
@Ffisegydd: was dealing with some infection rates in terms of vaccination levels and the effectiveness of the vaccines. As I usually do, I started from a full expansion of all of the dependent probs (P(disease | vaccinated), etc). But it all boils down to a simple weighted infection rate.
 
7:22 PM
Interesting.
 
DSM
If you just think of it as two groups with different infection rates, you can write down the final formula on dimensional grounds alone. :-/ Why am I only clever in retrospect?!
 
@DSM you are in python room you should have used python early on :d
just numerical simulation
 
I really want to post the following in response to that user's latest plea for help, but it could only end poorly.
> @LiLi here's my professional advice: stop trying to do what you're doing. You have literally run into a basic issue with everything you've done. Literally each of the questions you've asked is an extremely basic follow-on to a previous question. You have not demonstrated any ability to think or program critically by yourself. Take time off from SO and this project, read tutorials and documentation, and come back if you can demonstrate that you understand what you're doing.
It's cathartic just writing it here though.
> Also, it would help if you tried to communicate clearly and professionally using grammatically correct sentences without using phrases like "PLeaseeeee" and ":(((((" like a child.
I feel like the system has failed me here. I've downvoted, I've closed, but the user still remains, posting their vampire-like questions.
cbg @Zero
 
I suppose the obvious answer is to revolt and lead a coup to overthrow the regime.
@tristan can be the Chief Inquisitor tasked with reforming help vampires.
 
7:33 PM
Yeah probably. :) I was going to post something on meta, but I couldn't figure out how to phrase it without sounding like I'm whining.
 
DSM
@davidism: honest recommendation? Wash your hands of the whole thing. CV when you see one deserving a CV and walk away.
 
Yeah. It's frustrating but life goes on.
 
It'd be nice to moderate with absolute authority and make SO perfect, but we have to put up with reality. Sometimes it's best to walk away for your own sanctity, like the LinkedIn tag.
I meant sanity there but sanctity works too oddly
 
I do like to think of myself as a sacred treasure. :)
 
Hey guys is there an easy way to log all the output from my script?
 
7:41 PM
cbg
 
I tried logging.basicConfig(filename='example.log', level=logging.DEBUG) but that's giving me too much stuff
 
haven't done one of these before: http://stackoverflow.com/questions/28971738/printing-the-name-of‌​-a-variable#28972115 got closed as a dupe of something it's not even remotely duplicating.
@Martin so change the level? level=logging.WARNING or etc will trim out all the debug level messages.
 
I'd like to have info level, but it won't show me any logging.info() calls
 
DSM
Agreed, and voted to reopen.
 
@davidism got a database question for you
 
7:43 PM
ty @DSM
 
marked as duplicate by Community♦?
Interesting.
 
The tooltip says that the question author approved the pending dupe. (Hover over Community's name in the close reason)
So that must be why Community closed it.
 
I cannot even dupehammer reopen it.
Ah, python was added to it later on.
 
Hmm I didn't even know there's a tooltip there.
 
DSM
That said, it's probably a dup of something else.
 
7:44 PM
Is it possible to have a User model that gets a different column based on Role? That sounds a little bizarre
 
@DSM I don't know. The actual answer to his question is "You can't," so I don't know where that duplicate would be
 
1 needed
or could link to variable variables instead :D
but even that is not a match
 
@corvid that doesn't seem like something you'd want to do
 
This is what he wants to do somehow:
def foobar(some_arg):
    show_original_name_of(some_arg)

>>> a = 3
>>> foobar(a)
'a'
 
How would you recommend implementing different "types" of users?
 
7:46 PM
You could create a joined-table inheritance, where an "AdminUser" had some extra fields on top of the "User" it inherits from
 
DSM
I know I've read explanations before in answers of how names and objects work in Python, where the most upvoted answer explains why it doesn't make much sense, and how lower-voted answers explain hacky ways you can fake it.
Reopening achieved!
 
The closed questions God demands a sacrifice. http://stackoverflow.com/questions/28971651/python-3-4-3-tkinter-ttk‌​-file-not-opening
 
Hm, makes sense. Just hope the solution is scalable, because it seems like there would have to be a lot of role-checking to make that work
 
@DSM so what to close it as
 
@corvid it sounds like you just want two user types, not one user type and roles
What it really sounds like though is you should rethink why you would need two user types with different data.
What if a user changed roles?
 
7:53 PM
it's actually mostly because of this framework and mongo :\ they seem to provide a user utility by default, and I'm not sure if trying to make different tables will mess that up. A lot goes on behind the scenes with authentication in this framework
 
what framework?
 
Meteor
 
I'm reading the docs, and it says that a user doc can contain anything, as long as a few special fields are present, so I don't see why you'd need to do anything special.
If the user is put in a role, add some information, if they're removed, remove the information.
Looks like there's also the Profile doc on each User
 
yeah, the profile is where the public information for the client goes
 
 
2 hours later…
Air
9:56 PM
stackoverflow.com/q/28972377/2359271 this has got to be a dupe but I can't find the proper target
It's one of those "how do I install two versions of Python"
 
user559633
10:19 PM
@Ffisegydd :| unless the reformer comes with ban by email, no thanks
 
user559633
I love this headline "Argentina's double helicopter crash increases reality TV filming death toll"
 
user559633
WONT SOMEONE STOP THE BARBARIC PROCESS OF REALITY TV FILMING?!? SAVE OUR D LIST CELEBRITIES
 
11:14 PM
holy cow
-1
Q: Beginner Python Average Program

user3444477I'm just starting to learn Python from a book. but I keep running into the same problem when i run my script, it says: File "C:/Users/bob/Desktop/Python/Part3 A.py", line 8, in <module> print(' the average is: ', avg()) File "C:/Users/Bob/Desktop/Python/Part3 A.py", line 6, in avg averag...

so many bad answers
nevermind they deleted their answers and or edited them to resolve the problems
 
11:32 PM
Umm... can't seems to find a dupe for stackoverflow.com/questions/28975937/… - I'm sure we have one... (I'm sure I've answered it) - but what to search for!
 
I thought I saw one of those earlier, when I was just looking around @JonClements
 
11:47 PM
@zachgates not a bad suggestion, but that's finding hte index... although it won't take much for someone to just swap a variable name (or I'd hope so anyway).
 
01:00 - 16:0016:00 - 00:00

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