« first day (1641 days earlier)      last day (3301 days later) » 

9:00 AM
@InbarRose What was the question again ;)
 
@overexchange Do you even know what return () means?
 
@Ffisegydd it's looking a somewhat better primary than last year... whether I stay 3rd for the actual election phase though... that's going to be completely different...
 
(Hint: It means you forgot to put the variable you want to return in the parenthesis)
Also - You don't need the parenthesis.
Also - I am actually not a goldfish, but I am busy. I can't help you further.
rbrb.
 
cbg
from the office, that is.
 
@Martijn in a sudden weird occurrence you've dropped out of the top ten! :p
 
9:04 AM
@JonClements hehehe. I have JasonC's real-time tracker open on my screen here.
 
return () mean returning tuple with zero elements
 
almost 6k. Unbelievable.
 
not entirely unexpected though :)
 
c-b-g
@MartijnPieters what are the biggest python 2->3 porting problems?
in your opinion
 
People.
 
9:09 AM
@RobertGrant ack
 
@AnttiHaapala text handling is a big issue, but with six and future that burden has been lifted to a great extend. Mostly it is legacy code bases not separating binary and text data properly.
@AnttiHaapala C extensions are harder to handle but not nearly as visible on Stack Overflow.
 
@MartijnPieters I did backport % bytes formatting to 3.3 and 3.4
should do it for 3.2 too...
 
loads of conditional compilation mucking.
 
I think poke nails it from a general point of view, though no doubt from a purely technical point of view there are specific issues like Martijn mentions.
 
@poke yes, can't fix people in code
I am talking about pypi.python.org/pypi/bttf
 
9:11 AM
@poke points for creativity! :-P
 
;)
And honesty
 
@AnttiHaapala It's your kids, Guido! We've gotta do something about your kids!
 
well I am not saying I don't agree with that
 
For this code.. please help me understand this stack trace.
 
9:15 AM
@overexchange please stop pasting half a screen of code in the middle of people chatting
 
@overexchange you've asked your question once already.
This isn't a private tutoring site.
If no one was in a position or wished to answer you, then there's not much you can do.
 
that was an incomplete code
 
How do i make text in posts appear smaller or bigger than normal?
 
Please don't just re-ask your question a few minutes later, especially posing a long code example when the rules specifically ask that people add large code blocks in a dpaste.
 
I would ask it on SO
 
9:20 AM
@overexchange good idea
 
*iff you can ask a clear question and include reproducing code.
 
@AnttiHaapala used ziggurat_foundations? Or any alternative permissions/login system?
 
roll your own :D
 
au revoir
 
@RobertGrant pyramid acls do work, though they're not always obvious if you do not have context objects, and if you do then they are better match than ziggurat
 
9:26 AM
Does that mean I get my password handling code written and debugged for me? :)
 
it is just the password :P
you can use ziggurat_foundations
 
6k reached.
 
@Martijn I was going to say you've surprised bluefeet's total from last year already :)
 
@MartijnPieters stretch target: make the total of the votes for people who are regulars in this room surpass the total of all the other nominees' votes :)
 
argh
what's so difficult to understand that "one needs proof"
In a mathematical content
and that that a simple example run is no where near conclusive proof.
 
Thanks!
I'll fork it as well, for next time.
 
@paul23 Not difficult to understand. You sound frustrated...
 
disappointed is more the word..
or how you call it "not knowing where to go/what to do next and stunned"
I'm just asking for proof why a b-spline is the same as a cubic spline (When several answerers said I should use a b-spline as it is more generic than a cubic spline - I know a cubic spline has the correct mathematical properties which I actually need). But all comments are just stating "they look the same, test it".
 
I take it you may be referring to Cubic splines?
 
ye
 
9:36 AM
ah - yes#
 
I'm wondering once again if this is a question SO is even good to answer
 
cbg
 
You might try mathematics.stackexchange... math.stackexchange.com/questions/699113/…
BTW - I'm not sure that Q/A answers your particular circumstance - just a relevant example and they tend to be a bit more rigorous on prove vs show.
Once you've satisfied yourself of mathematical validity, SO can help you through the programming heavy lifting.
 
@JRichardSnape Hmm guess that's true - but there they would then look weirdly at the "python esque" thing. I know they are NOT mathematically equal. I justdon't know why they tend to give the same results in this case (maybe under certain circumstances B splines transform into cubic splines)
 
@RobertGrant I'll see if I can extend my botnet my luck that far!
 
9:42 AM
@JRichardSnape And that would also be the answer I get at math.stackexchange: "no they're not equal", except if you do xyz. which then points me back to the library: is it really doing XYZ, can there be proof?
 
They are not mathematically equal is one thing. However the maths guys state a couple of times in different questions "And the important point is that any piecewise polynomial (i..e. any spline) can be written as a b-spline.". They tend not to make those kinds of assertion lightly, although I can't see a rigorous proof of that in the answers. I'm not an expert on the maths here so can't give you that myself
 
I seem to get always stuck in that land nowadays with each question I (need to) ask
 
in Stack Overflow 2015 Moderator Election Chat, 7 hours ago, by Alexis King
@Seth Current prediction: Martijn sweeps all three spots, beating out Martijn in a close fourth.
 
@paul23 Are you doing research?
 
somewhere between the mathematical and the implementation and wondering how it exactly works
 
9:44 AM
@MartijnPieters has it been financially worth it to create so many thousand accounts to upvote your answers and thus be able to charge so much on codementor? :)
 
Nah I'm an engineer studying aerodynamics
@RobertGrant and doing data analysis and through that come to these questions
 
@RobertGrant I don't know, I don't pay for my distributed AI network.
ask the regulars in this room, they created me.
I think it says Skynet on the chips, though.
 
@Martijn just be a good AI and stay away from nuclear launch systems please :p
 
I could rewrite the algorithms easily - but not fast enough for my needs :/. The speed up under the hood for matrix solving that numpy provides (using cuda/C) is way above my knowledge (and I don't have the time to get to know that)...
 
@RobertGrant How it's possible? users must have atleast 150 reps to cast their vote.
 
9:47 AM
@AvinashRaj easy... that's just one Martijn level answer needed per account :)
 
:-)
 
@paul23 If you can rewrite the algorithm, but need the numpy matrix processing - why not rewrite but using numpy? Or are you saying you don't have time to get to know the numpy/scipy matrix manipulation toolboxes?
 
He
Are there any good GUIs for Python?
Or are they basically Python hooks to C++ libraries?
 
What do you mean by GUI? Did you mean the IDE?
 
@AvinashRaj No, I mean Graphical User Interface for programs
i.e. Qt, libRocket, wxWidgets, WinForms, C# or whatever?
 
9:52 AM
@JRichardSnape I won't (as in taking the time to implement them) be able to use the specific shortcuts for these applications. Such as the fact that the solution matrix will be sparse. But yes doing that now, it just feels silly knowing that there is a function with the exact name I need, but that doesn't provide the statistical data.
 
re-cbg
 
@paul23 Sure - can see that. A quick browse through the code suggest scipy.interpolate.spltopp might give you what you want (piecewise polynomials from cubic spline representation you already have). Have you been down that road already? My other thought is - is there another way to achieve what you want? Maybe if you post the underlying problem (i.e. I want to estimate and integrate this curve...) rather than a problem with exact method you might get some bites.
 
Seen this?
 
@JRichardSnape Well that latter is just silly - I know that by using cubic splines I get a n^2 as much accuracy as using linear approximation. So that let me do only sqrt(n) tests. I can't really start doing something different in a program/function than what I proved on paper right?
@JRichardSnape First thing is something I could indeed still test, can't remember that function
Though I have to go in 30 mins so I'll do it later
 
@paul23 "b-spline is the same as a cubic spline". Not exactly. A plain cubic spline is a degree 3 equation of y in terms of x that passes through a given pair of points, with the derivatives given at both those points.
Whereas a cubic Bézier spline is a pair of 3rd degree parametric equations of x in terms of t and y in terms of t (with t runnig from 0 to 1). It's determined by 4 points. It passes through (x0,y0) & (x3,y3), and is tangent to the lines (x0,y0)-(x1,y1) and (x2,y2)-(x3,y3), with the "velocity" of the curve at the endpoints determined by the lengths of those tangent segments. So a cubic B-spline has more freedom than a vanilla cubic spline.
 
10:06 AM
@paul23 Well - I think silly is a bit strong - I have no idea what your underlying problem is, so can't comment on whether your method is good or bad. If you're convinced that it's what you have to do - fine. I hope the function I mentioned can help you.
 
@PM2Ring that's what I'm saying to the answer.....
@JRichardSnape not meant to be personal lol
@PM2Ring stackoverflow.com/questions/29458589/… well here I'm told time and again a bezier spline with the correct settings is a cubic spline.
 
B-splines are groovy for drawing stuff: you can even make them do loops with a suitable choice of control points ((x1,y1) and (x2,y2)). But you certainly wouldn't want to use them to do interpolation of a polynomial in x.
 
@PM2Ring I think that's what he's trying to say to the answerer
 
@PM2Ring -.- That's what I tried to explain to the answerers...
 
10:25 AM
@paul23 I take it you've looked at the tutorial too and it doesn't show what you want? docs.scipy.org/doc/scipy/reference/tutorial/… It appears to show integration of function interpolated using cubic splines.
But, as I say, I haven't got a handle on your problem really and this is doing things "under the hood", so if you want to see the spline coefficients and integrate yourself, this might not suit. I'll have to go now
 
@paul23 I'm not familiar with scipy, but I assume from a brief look at the docs that it uses a plain cubic spline in .interpolate.interp1d(kind='cubic'). And your problem is that it doesn't give you access to the coefficients of the cubics it creates, so you can't do an analytic integration of those cubics.
OTOH, you can do a numerical integration on the resulting interpolated function, and if you use Simpson's rule to do the integration the result will be identical to an analytic integration, since Simpson's on a cubic is exact, as explained at en.wikipedia.org/wiki/Simpson%27s_rule#Error
 
@AnttiHaapala Pyramid question of the day: can I specify a default context factory so I don't have to put it on each route?
Subquestion: whither pyramid_beaker?
 
10:47 AM
@PM2Ring hmm simpson's 3/8 rule, that is indeed something I could do - though speed is a major concern (a single functions consists of roughly 800*1000*300 datapoints in 3 independent dimensions). As it would require me to test more points than the three used for cubic interpolation. Anyways I g2g going to test several methods later today (I guess the answer is: "sorry the api doesn't provide the interface to get the factors").
 
Ahem I have just mastered a basic understanding of rvalues. Does anyone here know what they are? (Curious to see if Python programmers deal with this)
 
@Cinch we were taught rvalues on Talk Like A Pirate day, and it was too confusing.
 
Arr!
 
@paul23 && matey
 
@Cinch It only really becomes a problem/important to undestand when something is, when you're working with memory
 
10:53 AM
@paul23 Does Python have it?
 
@paul23 Oh. From the code in stackoverflow.com/questions/29458589/… I thought you were doing this with a simple scalar function.
 
And you take advantage of it by using move symantics
python doesn't really do those things, rather it prefers lazy copy semantics and immutable references
@PM2Ring that was just a simplified example :P
 
@paul23 Tried an answer - see if it works - I used your data.
 
@paul23 "Make things as simple as possible, but not simpler." - A. Einstein :)
But anyway, according to docs.scipy.org/doc/scipy-0.15.1/reference/tutorial/… , scipy can do 3D integration with Simpson's rule.
 
I'm really off now
bus leaves in 30 seconds
 
11:00 AM
@paul23 but this'll just take a minute
 
@RobertGrant did you get the solution to context factory yet?
@RobertGrant most of the time actually you should do a mix
that is if you have users/123/foo
thne you should actually have a factory on users/;
with 123 mapping to an user
and foo should be a view with context=User
you can set the root factory on configurator
it is the default for every route
 
Oh, sorry yeah. I read that a while ago and it didn't click.
I'm still working out contexts etc.
 
@Cinch The lvalue / rvalue distinction is independent of language, but how it manifests depends on the syntax of the language. It's especially important in C (and it's close relatives), since variables can be assigned to inside an expression (eg with stuff like i++); but other languages (like Python) don't let you do that sort of thing.
 
I'm still in the mode of how django-guardian does object level permissions, which was much less setup (at least for simple stuff)
 
@PM2Ring A shame but I agree Python doesn't really need that
 
11:04 AM
@RobertGrant remember that the pyramid is based on the ideas of ZOPE which is a Z Object Publishing Environment
 
However how might one gain lower level control over Python?
 
the idea is that you publish objects
the problem you have currently is that you want to do Django in Pyramid :D
 
Yeah I guess
 
for that I guess you could use the ziggurat foundations; it really depends what exactly are you trying to achieve
 
I actually want something very basic:
1) Logins
2) A user is associated with a company or companies
 
11:07 AM
yes
and?
 
And I can do a dirty way, e.g. user id on company record, but I was thinking of using object permissions instead, for flexibility in the future
E.g. multiple users per company
Other levels of login, etc
 
so "user id on company record", you can use that
 
@Cinch: Also bear in mind that variables in Python work quite differently to how they work in C. In C, a variable is a named location in memory, and you can modify the contents of that area in RAM. In Python, we have objects (that may or may not be mutable), and those objects may be bound to a name, but they don't need to be.
See Ned Batchelder's: Facts and myths about Python names and values for a great article with nice diagrams.
 
have the company have __acl__ as a calculated property
no need to do it too complicated
 
As in on the sqla model?
 
11:10 AM
yes
for example
then you can use the company as a context
 
@PM2Ring interesting
 
@Cinch I missed stuff like that when I first started in Python (after over 20 years writing C), but I soon got used to it. And see the point of avoiding that type of messiness.
 
@PM2Ring It seems nice for general non-systems programming
 
@property
def __acl__(self):
    return [(Allow, 'user:%d' % self.user_id,  ALL_PERMISSIONS)]
 
I'm just wondering if anybody can actually do games in it
Or anything performance-based
 
11:12 AM
@RobertGrant ^ for example
 
@AnttiHaapala calculated how? As in relate it to a custom table that says user_id, context and context_id, and look it up in there?
Oh
 
if in the beginning you have 1 user per company, you can do it like that
 
But then how do I control that for different users?
 
or another way:
 
Oh, sorry yeah
 
11:13 AM
return [(Allow, 'company_admins:%' % self.company_id, ALL_PERMISSIONS)]
or if it is not a good match you can replace the whole ACL
I have thought that it should be made more flexible (just a bit), so it could call a function :P
 
@PM2Ring interesting
 
this is the key
the ACLAuthorizationPolicy is very zopey...
 
Wait a minute if everything automatically is changed...
 
but you do not have to use it
 
then how do you have functional programming?
 
11:17 AM
@RobertGrant the problem with ziggurat_foundations is that it uses the aclpolicy even though it might not make sense
 
@Cinch Stuff in Python that uses C-based code to do the time-critical stuff can be almost as fast as pure C code. And heaps faster to develop. You probably wouldn't try to write a bleeding-edge game with it; OTOH, even then, Python could handle a lot of the basic "housekeeping" tasks, and you could just use C/assembler (and a good GPU) for all the high-speed graphics stuff.
 
@PM2Ring Hm.
Sounds interesting
But how would you handle networking?
 
The usual way. :)
Python has plenty of support for network comms.
 
@PM2Ring Welp at least I'll be ready for Python after C++
 
Eve online is written in Python
 
11:28 AM
@Ffisegydd It's written in Stackless Python
I believe it's statically-typed and not standard Python
So there's that.
 
Define "standard python"
CPython is merely an implementation
:p
Same as Stackless.
One is no more standard than the other
 
@AnttiHaapala sorry I got a call - reading your stuff now
 
11:47 AM
Is "context" the (main) model that is being accessed?
Or it just tells you a bit later in that same page, Rob.
 
12:02 PM
The problem with ziggurat_foundations is that it uses the aclpolicy even though it might not make sense <- this.
I don't get why it isn't just, for this object, does the current user have permission X. Seems the most generic way possible.
Anyway, I'll maybe try implementing authentication first. Get that working!
 
12:17 PM
@RobertGrant there is nothing wrong with using acl
the problem is that it is using acl authorization policy which requires a materialized acl list
 
Yeah, totally. If it were a facade thing that queried a object, user, permission table then it'd be perfect
But I think that's actually what z_f does; it just requires a generic ACL factory somewhere to be created first.
 
Hi @JRichardSnape! I gave you the 50 pts bounty yesterday in my question and now I see that I can only set another bounty with a 100 pts minimum.
 
@RobertGrant that is why I said it was wrong,
the ACL authorization policy is too specific
unlike lots of other things in Pyramid, it is too zopey :)
 
I'm giving this to cphlewis but just wanted to let you know that it's not because I value his answer more, but because it's the minimum I'm allowed to give after already giving out 50 pts.
 
Yeah, it seems as though...yeah
 
12:22 PM
if it did a method call
it would be better
 
Yeah, I agree
 
but again: one can do such an alternative policy :D
 
I had promised to give each 50 pts but apparently it is not possible. Had I known better, I'd given you 100 pts each. Sorry for that.
 
I just haven't had the need myself recnetly (been using Zodb/everything's so simple)
@Gabriel i guess you cannot do that either
guess the bounty must increase
IIRC
 
I suppose the problem with specifying a default factory is then even the public routes get affected by it.
 
12:24 PM
@AnttiHaapala mm I think you're right.
 
sure...
@RobertGrant so: do this::
class CompanyLookupFactory():
     def __init__(self, request):
          self.request = request
     def __getitem__(self, id):
          return DBSession.query(Company).get(id)
then you do:
add_route('/companies/*traverse', root_factory=CompanyLookupFactory)
you can genericize the lookup
now your context will be a company by id if you go to
/companies/123/
add __name__ (returns str(self.id)) to Company, so that you can use resource_url to generate urls to model objects
 
I mean ACL factory :)
Although I might do that as well, actually
 
this is a root factory
then you can mount lots of different views with different perms to that context=Company
 
Is that the basis of the perms system?
 
yes...
 
12:33 PM
Ah, okay. I haven't read that in my perms travels
 
Just got my 20th Necromancer badge.
 
That's a good number.
 
@AaronHall How do you go about getting them? Just perusing old popular questions? Queries?
 
@AaronHall kind of implies you're heavily into the dark arts... I feel quite afraid all of a sudden :p
 
12:40 PM
@Gabriel Hi - sorry I wasn't looking at the screen when you messaged.
 
@JonClements at least they have badges - that's quite cheery
 
I get comments like: "This is a great answer, a lot better than the most upvoted one" and "This is the most complete answer to this question."
 
Don't worry about the bounty / answer thing. It was an interesting problem, glad to get it sorted.
 
Necromancy gets a bad rap, but there's nothing inherently evil about animating skeletons to do your bidding. People just confuse "evil" and "icky".
"But you're raising them against their will..." you say. Not necessarily. Hold a little seance so you can ask permission first.
 
@Kevin 'cos seances aren't creepy either, hey? :p
@Martijn looks like you'll be overtaking Bohemian's score from last time in the next couple of hours...
 
12:48 PM
question: why do some languages prefer using double quote while others prefer using single quote?
 
Half-baked story premise: every ten years during the celestial alignment, it becomes possible to communicate with the dead for one day. They honestly answer any question about their lives. This society is quite different from ours, since nothing stays secret forever.
 
@JRichardSnape just wanted to make that clear. Thank you once again for your great answer!
 
@JonClements I prefer to call it Post-Mortem Communications
 
Is a rose by any other name... etc...
 
@JonClements You said rose.
 
12:50 PM
@JonClements It looks like a possibility, yes.
 
@Kevin or you have people employed to quickly ask a pointless question of them every 10 years, before the police can. Do that five times and you're free :)
 
@AaronHall For that, you deserve a Skull Ring.
 
@RobertGrant I was just about to say, I wonder if a "denial of service attack" would be effective there.
 
Yeah. Especially if the police did it in a church service.
 
3
A: 2015 Moderator Election Q&A - Questionnaire

Martijn PietersMartijn Pieters's answers A question is asked and receives some very good answers. The asker then flags this question and asks for it to be deleted because having it up will cause them trouble at work or school. Do you delete the question? Questions plus answers make a collective work...

Late, but I've been very very busy last night and this morning.
 
12:54 PM
To make things more difficult for the mobsters and politicians, what if a spirit could appear in multiple places at once? I imagine them more as recordings or echoes of the personality and memory of the living person rather than a free-willed entity, so there would be no problem with replication then.
 
@Martijn so - looking at that - it looks like we have exactly the same points, just worded differently :)
 
All it would really mean is that since killing people would not guarantee silence, the mob
(or any organization intent on keeping secrets) would end up having lots of prisons where they keep people that in the normal world would probably have just been killed.
 
Probably the first thing politicians would do, is pass a law saying that the testimony of ghosts isn't permitted in court. Although cops would still find it useful, if they employ parallel construction.
@InbarRose Yeah, I imagine lobotomies and comas would be much more common over there.
 
what kind of skull ring?
 
Yeah what keeps your memories if you lose your mind before dying?
 
12:56 PM
@Kevin Ahhh cryostasis or something?
@AaronHall See the flow of conversation you and your badges have started! :p
 
@RobertGrant er, uh, waves fingers. It's magic!
 
That would be an awesome conversation starter at church, I suppose.
 
@AaronHall more likely a conversation stopper...
 
oh hey, I voted for Martijin and Jon. Mostly cause they were the only people I knew on the list
 
12:59 PM
Or anywhere; I assume the point is to be noticed, like most jewellery :)
 
also because I have used their answers to other people's questions tons of times
 
Martijn just hit 7k.
 
woo hoo!
 
another 800 or so to go to Bohemian's final count?
900
 
Another 893 I think
 
1:02 PM
7893 is the target, to be precise.
Ye gods, it hasn't even been 24 hours yet.
 
Really you should take the total number of votes last year and calculate bohemian's % then work out what yours needs to be dynamically.
 
@martijn and I imagine with the US getting into work if they didn't see it last night... are going to throw in a load of votes this afternoon...
 
@Ffisegydd sounds like a project for a data scientist! :-P
 
I would do but I'm super mega busy at the moment, maybe later today :P
 
@AaronHall This one looks good:
 
1:05 PM
@Ffisegydd I'd imagine you'd have to look at the STV data for that
 
I could do with some minions to do my analysis for me.
"Wanted: Minions for data science and evil work. Must bring own computer. Must code in Python 3. Hard work, long hours, crazy boss. No weirdos."
6
 
@Ffisegydd good luck finding "normal" data scientists :)
 
I don't know numpy, so I'm just guessing here: stackoverflow.com/questions/29627258/… Does that sound correct?
 
1:10 PM
> Wanted: Somebody to go back in time with me. This is not a joke. P.O. Box 91 Ocean View, WA 99393. You'll get paid after we get back. Must bring your own weapons. Safety not guaranteed. I have only done this once before.
 
(the ad is probably a myth, by the way, no evidence has been found of it ever actually having been placed by Shackleton).
 
@Ffisegydd You had me at "No weirdos"
@Kevin Didn't they make a movie about that?
 
They did :-)
Oh, I'm disappointed to find that the original ad was a prank and not a crank :-(
 
Cabbage, all. I think. I forget which vegetable is which.
 
@Wayne that's the right one :)
 
When installing a Ruby gem (Ruby's equivalent to a pip package), anything in the gem's bin directory will be added to the user's path, so that after installing the gem, they can run that executable. Can a pip do something like that?
 
@MattDMo I saw you used Sublime, may I asked what Python linters you use (if any) - can't find a good one that'll work with a virtualenv and allow me to add to the pythonpath?
 
What REPL is this guy using, that his lines start with "-->"?
Or, wait, is it pdb?
 
can you do an os.walk that excludes a specific directory?
 
Yes
We've talked about that on here before sometime :)
From here: "When topdown is True, the caller can modify the dirnames list in-place (perhaps using del or slice assignment), and walk() will only recurse into the subdirectories whose names remain in dirnames; this can be used to prune the search..."
 
1:20 PM
@MartijnPieters just thought - you'll be able to clear up all those pesky tag synoynms that have been hanging around that not many people can vote on...
 
How many positions are up for grabs?
 
@JonClements I would be.
Damn, JasonC isn't doing as well as I'd hoped for.
 
Cool
 
Hypothesis: Everyone is going to think "Martijn is a shoe-in, everyone will vote for him, I'll give my vote to someone else" and Martijn won't actually get diamonded.
 
1:25 PM
@Ffisegydd I was thinking that earlier
It's also possibly not good that Martijn and I probably have a massively overlapping electorate base either...
 
s/shoe-in/clog-in/
But I did that joke the other day
 
So then neither of you will get any votes, owing to the buridan's ass paradox
 
(I can imagine not getting enough 1st votes and going out without a chance for 2nd votes...)
 
@Ffisegydd That logic might work for other voting systems, but here it doesn’t make much sense.
 
ah thank you Robert Grant. So, I am trying to work with git hooks... you can use python for a basic after add git hook, right? I'm just trying to run a jshint type thing on all js files
 
1:30 PM
Since there are three open slots, and we have three votes, there is no reason not to vote for those three you want to win.
 
Fine. Ruin my joke with "logic" grumble bloody German logic grumble
:P
 
:D
 
user559633
Good morning you lovely people (edit: except Fizzy. F that guy)
 
user559633
@Kevin You post very interesting references, thank you.
 
@tristan isn't that just MTFL code for an extra shout out for @Ffisegydd? :p
 
user559633
1:33 PM
/me rolls up newspaper
 
umm..... @tristan apparently just said "thank you"... I think someone has hijacked the real Tristan's account...
 
user559633
Oh shit i've been discovered tries to climb out window pants get stuck; fake tristan dangles by the belt out the window, mooning passer-byes
 
Now I'm not sure... that sounds like something @tristan would do...
 
ok, off to work, let's see if they've blocked SO chat again.
 
user559633
Ordering is all wrong. I'd moon, then climb out the window and stare people down out of boredom.
 
1:37 PM
The passer-byes look up at the dangling man, shrug, and continue on their way. "Business as usual for Python House", they think.
 
That sounds morbid if you don't know he's hanging by his belt.
"Business as usual I see, the Pythonistas have hung another help vampire by his figgin."
 
We're more like Looney Tunes than Game of Thrones.
3
 
Do you wonder whether operator.itemgetter does something nearly magic? It does not. It returns a tuple (of length two in this case) and then sorted does The Right Thing with that. — Lutz Prechelt 1 min ago
Er.... what's this guy trying to say?
 
user559633
is 'figgin' an old-timey british isles term for testicles?
 
In its original context in the Discworld books, it was a word that nobody knew what it meant, and so assumed the worst.
 
1:40 PM
Yes
To @Kevin's thing
 
user559633
(sidenote: lol, just got a salescall from verizon wireless in which a salesbro tried to hustle me onto a new plan and hung up when i called him out on it)
 
@Jon He might be pointing at your lack of explanation next to those two lines of code.
 
@poke possibly... but it's pretty close to plain English as to what it does...
 
I think the "you" in that comment is addressing other readers, rather than Jon.
I find it kind of funny in any case. "It's not magic, it's just doing The Right Thing". Ok, but "it just works" sounds like magic to me.
 
1:46 PM
okay I have a dumb python question. How do you tell if a subpath is part of a parent's path?
 
Is there a canonical for the daily questions that go something like: `if 3 == 5 or 4 :
print('python math doesn't work!')` I can't seem to find one :(
 
Something doing “the Right Thing™” automatically means more magic to me…
 
ROOT: ~/Development/code/health/meteor/.meteor/local/isopacks/velocity_test-proxy/os
EXCLUDE:
	~/Development/code/health/meteor/packages
	~/Development/code/health/meteor/.meteor
Is ~/Development/code/health/meteor/.meteor/local/isopacks/velocity_test-proxy/os excluded? False
 
@poke Somehow completely overlooked that, thanks :)
 
1:48 PM
It’s difficult to search for
You actually need to remember that you need to search for “boolean”
 
@corvid sub_path.startswith(parent_path)
 
I guess it would be any(sub_path.startswith(path) for path in excluded_paths) in that particular instance
 
That edit is correct.
 

« first day (1641 days earlier)      last day (3301 days later) »