« first day (1580 days earlier)      last day (3373 days later) » 

1:01 PM
@PM2Ring And you don't actually say why their code doesn't work
 
@Pureferret Well, I wasn't attempting to answer the OP's question - my answer is supplementary to the answers of the others who offered various implementations of the factorial function
 
@PM2Ring "Well, I wasn't attempting to answer the OP's question" Then why post it as an answer?
 
@PM2Ring why dv? :d
 
There's nothing wrong with that answer, don't know why it was DVd, upvoted nonetheless.
 
1:05 PM
@Pureferret To add value to the existing answers. But if it really upsets you I could duplicate the info that others have already given as to why the OP's code doesn't work as intended...
 
@PM2Ring my only criticism is I'd have added comments to the results, so rather than factorial0 it says factorial0 - Uses a simple for loop (not sure if it is, but you get the point). Otherwise people have to scroll back up to see which is which
 
yeah, ppl argue there which method is the most pythonic
 
hello there! I am sorry for bothering you, but I got qestion about ruby and active record query :) I never used this language before. But boss said me to fix some thing in query in redmine module. What does this `=>` means in this query?
`scope = Issue.open.visible.where(:fixed_version_id => nil).sorted_by_rank`
 
the most pythonic is from math import factorial
 
@PM2Ring I don't see how it adds value to someone who is clearly trying to learn for loops etc.
 
1:07 PM
i know its phyton chat but seems ruby one not active and maybe you guys got some experience with this? :)
 
@PM2Ring If this was PCG (and the question was "Write fastest factorial function"), then I'd completely upvote you
@DanilGholtsman Not a clue
 
I read some docs and for some reason
scope = Issue.open.visible.where.not(:fixed_version_id => nil).sorted_by_rank
is not working .__. but there are rows with not null fields in base
@Pureferret oh okay
 
@DanilGholtsman just think that it is a keyword argument application
 
@Ffisegydd Good point. I did think about that whileI was writing the code, but I wanted to get it posted while there was a chance that those people who'd already answered were still around & might possibly see my answer. :) I will add such commentary to the program, but it's after midnight here, so I might do that tomorrow.
 
as for why it does not work, I have no clue and I actually don't want to have clue
I am happy with SQLAlchemy which does not use the flawed Active Record pattern.
 
1:10 PM
@PM2Ring yeah fair enough :P I also commented with the relevant doc text about using min rather than, for e.g., mean.
 
@AnttiHaapala Active Record pattern?
 
hey i have a short question regarding python function calls:
 
@Ffisegydd Thanks, Fizzy.
 
@DominikSchmidt Have you seen this? sopython.com/chatroom
 
@Pureferret the pattern used in the rails ActiveRecord
 
1:12 PM
oh thanks!
 
Any one from Bigdata, NLP, AI domain?
 
In software engineering, the active record pattern is an architectural pattern found in software that stores in-memory object data in relational databases. It was named by Martin Fowler in his 2003 book Patterns of Enterprise Application Architecture. The interface of an object conforming to this pattern would include functions such as Insert, Update, and Delete, plus properties that correspond more or less directly to the columns in the underlying database table. The active record pattern is an approach to accessing data in a database. A database table or view is wrapped into a class. Thus, an...
 
dataSET = datastore.restructureA_SET(dataA) <-- is it possible that this function call changes the value of dataA
 
Yes.
 
@DominikSchmidt yes it's theoretically possible.
 
1:13 PM
@AnttiHaapala Ahhhhhhhh
 
Longer answer: if it's an immutable type such as a string, no. But most types are mutable, and are free to be changed in this way.
 
and why? as far as I know this only passes dataA to the function datastore.restructureA_SET and stores the returned list in dataSET
 
@Kevin dataA is a list
 
so the guy who named the Active Record pattern and said it is good contradicts himself :d
 
1:15 PM
TIL you can't have both a global and a param with the same name. SyntaxError: name 'a' is parameter and global. I assumed the global call would "override" the parameter at first, but suppose it makes sense.
 
@Pureferret Ah, but questions and answers aren't just for the benefit of the OP - they're for everybody who reads them: the OP, the answerers, the non-answering commenters, and all those people in the future who stumble across that page.
@Ffisegydd Ta!
 
a = []

def f(a):
    a.append('a')

    return 2

f(a)
print(a) # ['a']
 
@DominikSchmidt Yes, and in addition to that, it also does whatever restructureA_SET does.
 
@PM2Ring But if I search 'Fastest Factorial Python' I doubt that question comes up.
 
Perhaps you're under the mistaken belief that Python makes a deep copy of any argument you give to a function, so the original value is not modified. But this isn't true. Example:
>>> def frob(a):
...     a.append(23)
...
>>> x = []
>>> frob(x)
>>> print x
[23]
 
1:17 PM
oh ok thanks!
 
@AnttiHaapala Is this related to peoples carrot of Django?
 
One more vote. This won't be auto cleared up due to someone writing an accepted answer, right?
 
@davidism ?
 
1:26 PM
Delete Vote, please.
 
done
gone
@davidism the author of the accepted answer should be ashamed ;)
 
@Pureferret So? But once I've enhanced my answer with the commentary suggested by Ffisegydd and added a couple of links to other SO factorial questions, who knows who'll stumble on it? :)
 
Why do all my questions feel like death by code?
@PM2Ring Anyone. But people with the same question as the OP might not benefit from it.
 
you do have really a load of code in your q's :d
I looked at your last question and suddenly felt tired :d
 
@PM2Ring I'm all for showing people the right way to do things, but not at the expense of bloating questions with irrelevant (irrelevant != bad) code.
@AnttiHaapala Me too. I don't feel like I can come up with a SCEE
@PM2Ring Though I agree with @Ffisegydd's comentary it'l be better :)
 
1:35 PM
@Pureferret The OP's question is clearly answered in the top answer, i.e. the one that's been accepted by the OP and which also happens to have the most upvotes, which it deserves to have.
Some of the other answers there also address the OP's question, but most of the other answers generally expand on the whole question of calculating factorial in Python without directly addressing the OP's question. And that's ok, since those answers don't exist in isolation - they add value to the page as a whole.
 
@PM2Ring If the top answer clearly answers it, why would someone look further down?
 
To look for alternative approaches. I often scan through all answers when looking at Qs.
Because some of the time you'll find a Q that has an accepted answer with 5 upvotes, and an answer below it with 50. The OP accepted a sub-par answer because it worked for them, while over time others upvote the other solution because it's more stable/fast/whatever.
 
@Ffisegydd I do the same, but a wall of text often puts me off reading further.
 
Well, honestly, that's your problem. Not PMRing's.
Someone who isn't put off by a wall of text will read his answer and will understand that there can be significant time differences between all the other answers.
This may allow them to pick a better solution to their problem.
So I don't understand how you think his answer is "irrelevant".
 
Sure, walls of text can be off-putting. OTOH, timing stats of a bunch of competing algorithms do tend to be worth checking out. IMHO. :) FWIW, plenty of Python users believe that list comprehensions or generators must be faster than equivalent for loops. But generally, that's just not true.
 
1:44 PM
@Ffisegydd Because the questioner hasn't asked about speed, or performance. Clearly this is a beginner looking to understand the basics of the language. Other beginners will find this answer and try to learn from it. Experts that care about speed performance etc would probably go to codereview etc.
 
How do you know that other beginners don't care?
And how do you know that only a beginner will find it useful?
 
@Ffisegydd Because I don't expect an non-beginner to ask that question/stumble on it.
Shall we agree to disagree. I need to do some work today, and I don't see my opinion changing
 
Why? Do you know every single possible search query that people will ask?
Are you that omniscient?
What's the lottery numbers for Saturday? :P
 
So my timings post wasn't just about calculating factorials, it was also about the relative speed of various common Python constructions. And that info can be applicable in a wide variety of situations. Also, it'd be fairly easy for anyone to modify my code to do timings of other specific algorithms they're interested.
 
@PM2Ring Here's an analogy: Would you put that timing method in a python module about factorials or about timing? Which makes more sense?
 
1:50 PM
How is that an analogy? :/ We're not making modules, we're discussing a Q/A where the timing of different solutions has been summarised.
 
My own take on this: information can be correct and useful and still not belong on SO.
"use the built-in factorial function" is correct and useful, but strictly speaking does not answer the question "why does my homemade factorial function not work?"
 
@Kevin Agreed
 
that is why the answer should say: "you have wrong condition, should be x --- by the way if you consider the speed of your factorial function..."
this is the page for professionals and enthusiasists, if one ends up in that page about factorial, it is good to know there from answer (with lots of upvotes) that the best way is to use the math.factorial
 
@AnttiHaapala ...the inbuilt function is faster."
 
writing your own function is not professional
 
1:54 PM
I do understand the motivation behind writing an answer like that, though. I often see cruddy Tkinter questions, and I wish I could write a nice "primer to event-driven programming" guide that I could point them to, but it wouldn't quite fit as an A for any particular Q.
 
BUT what one needs to think about the questions is that
they need to be useful in general public
 
(Not counting questions like "how does event driven programming work?", which I would close as too broad rather than pasting in my hypothetical primer)
 
actually we should have the canonical question for writing my factorial function in python
then we can close every one of these as duplicate thereof
 
@AnttiHaapala That would work
 
@Kevin Fair point. I guess if we were being ruthless all those answers that didn't directly answer the OP's question and instead discussed alternative factorial algorithms should be hammered.
 
1:57 PM
there are only so many factorial function approaches that would work in python
 
But I decided that another approach to improve the existing answers was to create some code to provide solid timing information for all those proposed factorial algorithms (plus the supplied math.factorial & my own for loop thing). At least that way people would have solid data about the merits of the various approaches, rather than just babbling on about code they thought was cool. :)
 
@AnttiHaapala Which is why codegolf.stackexchange.com exists
 
codegolf is about making short code
 
I personally don't see how having an answer that summarises timing of different methods is harmful to the general good. In fact, I'd say it's actively beneficial. We're here to make a repository of knowledge, and having mathematical facts about which implementation is fast relative to others is not a bad thing. (+ what PMRing said :P)
codegolf is something completely different. It's about writing terrible, terrible code in as few characters as possible :P
 
I am not talking about writing the shortest code, but writing a Q: how does one implement factorial function in python, with all the best solutions in wiki and if one appears to use recursion, for loop, reduce, etc, then will close as a dupe of that
@Ffisegydd characters...
 
1:59 PM
And if this were codereview the answer would be "Use math.factorial()" EOT... as some wise person said earlier. :)
 
I do find a flaw in my own intuition, though: I don't normally see any problem with a post like "you used n instead of num. BTW, you should just use the built-in factorial function instead, and here's why". But, as you say, is there really that much difference between your post and one that has an additional single sentence pointing out the logic error?
 
@AnttiHaapala bytes....
 
If one sentence out of a hundred is omitted because it was already covered eight times by other users, is anything really lost?
 
@Pureferret ah okay I didn't know that tag existed. 67 questions out of 3000 isn't exactly a lot but fair enough.
 
2:03 PM
@Ffisegydd Go add one about factorials then!
 
perlgolf: TPR(0,5b) "String to Number" - "The input will be an American-English name of a whole number between zero and nine hundred ninety nine billion nine hundred ninety nine million nine hundred ninety nine thousand nine hundred ninety nine." - must print out the number (such as 0 or 999999999999)
 
Why? I don't care.
 
winning program:
-lp040 $^+=$^%1e3*(9x(3*y/dbl/W/-
4*/e/))||/te|W/.vec(crypt(DjcSj30,$_),12,4).e./y/}$_=$^;{s/\B(?=(...)*$)/,/g
 
@Ffisegydd Actually, too late: codegolf.stackexchange.com/q/26681/9534
@AnttiHaapala Looks par for the course with perl....
:p
 
I don't do CodeGolf. But I appreciate the attraction of that sort of thing. And I'm not averse to solving problems in an obtuse way. Eg, I'm pretty sure that I was the first person to implement a binary Fibonacci number calculator in Conway's Game of Life; it uses glider and spaceship streams for the bits.
 
My KevinScript solution beats that. I can do it in three characters: f(), where f is a built-in function that reads from stdin an American-English name of a whole number... etc
 
(function available only in the experimental KS_0.1g branch)
 
@PM2Ring That's awesome
@PM2Ring is this faster than your answer?
7
A: How much can you quickly multiply?

ali0shaPython 2.7 42.575 = ( 6,812,000 / 160,000 ) approx Code: import gmpy2 def fac1(n): m=lambda(L):([]if len(L)%2==0 else[L.pop()])+map(lambda(l):l[0]*l[1],zip(L[1::2],L[-2::-2])) L=map(gmpy2.mpz,xrange(1,n+1)) Number = (len(L)-1).bit_length() while Number:Number-=1;L=m(L) r...

 
@AnttiHaapala I guess I have to add that to the "inspired by" languages list in my readme ;-)
 
2:10 PM
@Pureferret Thanks! I don't think I did a factorial one in Life, but I might've. :) It wouldn't be that hard to build one using the multiplication unit I created, though. But I did do a Collatz sequence generator.
 
I have a hobby of writing unreadable one-liners, but I'm a big fish in a small pond here. Whenever I try a challenge over on code golf, I regularly have a character count five times larger than the best submitted Python answer.
 
Tempted to delete this as it's too specific
0
Q: Filter Django GenericRelation based on function on foreignkey

PureferretI want to find attributes associated to my character that fit in various categories. Eventually I want this output: "Attributes": { "Physical": { "Level": 1, "Strength": 1, "Dexterity": 1, "Stamina": 1 }, "Mental": { ...

Also writing a custom manager atm, so will be another self answered question
 
Here's some info on my Game of Life Collatz sequence generator
 
Impressive.
The Collatz sequence is the first thing I write in a new language, after Hello World. Nice for nailing down the syntax for ifs and elses and modulus etc
I spent many hours in high school trying to prove the conjecture, so I could collect the sweet sweet prize money.
 
A couple of months ago, I designed my own binary adder in Life. It's not as small or as fast as the unit I used in the Fibonacci calculator, the Collatz sequence generator, etc. But it's got a much smaller active cell count and it's much easier to understand how it works. :)
 
2:16 PM
Moore's law predicts that game of life simulators will grow ever faster, so it makes sense to sacrifice size for clarity ;-)
 
@Pureferret I can't test that one, as I don't have gmpy2. OTOH, I do have mpmath, which has a couple of factorial functions which can handle truly huge factorials.
 
@Kevin Heh. Golly can use hashing to speed up calculations with patterns that have a lot of spatial or temporal repetition; it's not unusual for it to be able to do many millions of generations per second with some classes of patterns.
@ZeroPiraeus Nice work, Zero
 
I find the hashlife algorithm to be an astounding piece of work. Not often you can get an improved runtime on the factor of 2^32.
 
@Pureferret: Have you read Optimizing For Pearls, Not Sand? If not, you may find it of interest...
And on that note, I should say rhubarb.
@Kevin Indeed. Bill Gosper is amazing; I've interacted with him briefly on a Life mailing list.
:really gone:
 
2:32 PM
@PM2Ring Yeah but I don't thyink I'm asking the right question for my answer
 
2:42 PM
Woo Necromancy :D
5
A: Is there any way to create a Pivot Table in Excel using Apache POI?

PureferretThe 'Quick Guide' is quite out of date. The change log refers to this bugzilla issue as resolved. You can see the code here: Here is a snippet: public static void main(String[] args) throws FileNotFoundException, IOException, InvalidFormatException { XSSFWorkbook wb = new XSSFWorkboo...

 
Any advice on how to add an item to kwargs? Here's the original question. Neither kwargs["extra_context"] = context nor login(request, *args, extra_context=context, **kwargs) is working. None of the extra_context items are making it to the template.
 
@aliteralmind I've done something similar, but not for logins
 
Most likely, the item is being passed successfully to login, but the code is failing in some other way.
 
 def save(self, *args, **kwargs):
    initialise_all_links = kwargs.pop('initialise_all_links', not self.pk)
    super(NWODCharacter, self).save(*args, **kwargs)
      def save(self, *args, **kwargs):
        initialise_all_links = not self.pk
        super(Mage, self).save(
            initialise_all_links=initialise_all_links, *args, **kwargs)
 
This reminds me of a class of Flask problems where the answer is "your code is being run twice, and the second time the arguments are different because you're at a different point in the page life cycle"
(or something to that effect. I've only seen questions be answered in this way, I haven't actually answered any myself)
 
2:51 PM
@aliteralmind Can you put the context into the request?
 
In any case, the two methods I suggested yesterday worked on simple test functions on my machine, so I'm certain the problem isn't with that particular login call.
 
@Pureferret: Unsure how to apply that code. @Kevin: Any ideas on how to diagnose this? Debugging information is not giving me any clues.
@Pureferret: Here's the original code, also non-working: dpaste.com/0BNYK04 I think that's what you mean.
 
I hate suggesting this when a web framework is involved, but a minimal complete runnable example would probably be useful.
 
@aliteralmind Me neither. Hoped it would help
 
(well, useful for problem solvers besides me. My system isn't set up to run Django projects)
 
2:54 PM
@aliteralmind I mean more like request = request.add_context(context)
@aliteralmind Does this help:
6
A: Add a variable to request in django

Anurag UniyalThe example you have given is wrong because there is no request.update function You are using name variable which you haven't assigned anywhere? Anyway, in python you can simply assign attributes, e.g. def update_name(request): names = Employee.objects.filter() if(names.count() >...

@aliteralmind Or this?
 
Here's the full view code, which is not complicated: dpaste.com/3XSR8D6. Here it is again with no comments: dpaste.com/02MMG0M
@Pureferret: Looking at those questions now.
@Pureferret Doesn't work. When I say doesn't work, I mean the variables are printing out as the empty string.
 
@aliteralmind My pseudocode was just pseudocode..sorry I didn't think request = request.add_context(context) would actually work.
 
@Pureferret Not experienced enough to know the difference :)
 
@JonClements LEGO DW
 
@aliteralmind Not experienced enough to make difference clear :P
 
3:03 PM
@Pureferret: Don't get how those answers apply to a signature that has *args, **kwargs in it: login(request, *args, **kwargs)
 
@aliteralmind Because login takes other named arguments
 
close or flag or something pls: stackoverflow.com/questions/28480791/…
 
@aliteralmind The only place we can 'hitch a ride' into the login template while positively not affecting anything else is through AuthenticationForm.
Is that not relevant?
So at the end call return login(request, AuthenticationForm=AuthenticationForm, *args, **kwargs)
after putting things in AuthenticationForm
 
I flagged the comment by the sorting OP.
@BhargavRao: your comment got a flag as well, did you remove it yourself or was it deleted by the system?
Your comment wasn't very constructive either.
 
I flagged both comments. @Bhargav I've noticed you leaving a lot of unconstructive, sarcastic comments on posts. I know that these types of posts are annoying (where they show no effort) but it reflects badly on you.
 
3:12 PM
What's that old saying... When you're unkind to someone, you're hurting two people?
 
@Pureferret: Was more focused on the code snippet. Will take a closer look.
 
@aliteralmind If not try here: irc://irc.freenode.net/django ?
 
I deleted the comment myself. Sorry. (Won't happen again)
 
Snarky comments are like junk food. Fun in the moment, but don't do it all the time.
8
 
@Pureferret @Kevin: Appreciate the help.
 
3:14 PM
I get rapped daily in college for being sarcastic. I need to change my attitude
 
I love being sarcastic, it's one of my favourite hobbies, and people who say "it's the lowest form of with" are really, really, really clever people.
 
I hate being sarcastic. I get scolded by every one for it :(
 
Try other forms of irony as a substitute.
 
Been training my 5 and 8-year-olds for their entire lives, on how to stand up for themselves to my sometimes exceedingly dry, sarcastic, and absurd humor.
 
But usually, I delete my comments once I get a reply
 
3:21 PM
@aliteralmind You're welcome
 
I pretend to be mean, and my 5-yr-old gives his huge toothy grin, and says "You're just preten-din."
I just keep the word "real" sacred. If I say something "for real" it's honest, without humor.
 
Heh, during that age range, my little sister would say "You're tricking me!". Can't get anything past that one.
 
My 8-yr-old, whenever he wants to mess with me, or I say a joke that upsets or tricks him (not enough that to really upset him), he says "Excuse me Daddy? The Muppets are not real." And then he runs away.
 
realtalk: anything I precede with "realtalk" is sincere. Everything else, who knows.
 
my side consulting business made more revenue with 4 months work than my daily work has done in 3 years with 5 full-time guys
 
3:24 PM
Am I the youngest here?
 
-9
Q: How can Super users like Jon Skeet manage to work while answering whole day on S.O?

jQuery.PHP.Magento.comHi I am talking about superusers such as google employee Sir Jon Skeet ,Margin Peters etc. I dont understand how these people in best Companies work properly whole day in Giant companies(like google) and also get top reputation? I mean come on if even if I work on S.O. a whole day , I cant do it.

 
@BhargavRao: I'm twelve. How old are you?
 
I feel like one of the Mudkip avatar havers is a young teen. Haven't seen either of them in a while.
 
@davidism I just can't take people with a username like the one of that guy seriously...
 
@aliteralmind 12 with 5 year old kids? That's awesome
@davidism Margin Peters .... Lol
 
3:25 PM
@Kevin "Sincere." That's the word I was looking for.
 
@MartijnPieters "Margin Peters"
4
 
@BhargavRao: The wife's a little older than me. ;)
 
@aliteralmind Um. That's so real
 
Hmm, not sure if I should laugh at the troll, or if it would encourage him.
 
Did Jon Skeet receive a title from the Queen or something?
 
3:27 PM
If the former is permitted, I would express appreciation that he didn't go for the low-hanging fruit of "Martin"
And instead chose a more radical typo.
 
That'd be awesome. "I hereby declare you Knight Commander of the British Empire for getting 1,000,000 SO rep. Arise, Sir Jon Skeet."
 
DSM
Morning cabbage for all! Even those on the margins.
 
hyuckhyuckhyuck.
 
@DSM cbg
 
why are government websites so terrible
 
DSM
3:33 PM
Last night I saw this question; would I be going against custom if I just wrote a solution? (I'm 75% convinced the OP will then edit to say "oops, I forgot to mention X, so it doesn't work.) He's edited in code which showed he tried, anyway.
 
@corvid because they're made by defense web-dev contractors hired by the gover... never mind.
 
@DSM You can get away with a lot of custom violation if you only do it for posts that have fallen off the new questions queue ;-)
 
@Ffisegydd I think it's mostly just the 10 year old oracle software with obscure error messages
 
I have to use a database website which is written in Java I think. Or it has Java applets anyway. It's awful. Seriously awful.
 
Wow. I'm fifth in last 30 days stackoverflow.com/tags/python/topusers !!
 
3:36 PM
Nice. And bloody hell Kasra climbs through the ranks.
I just sneak on at 30th :P
 
What the actual eff.
 
@Ffisegydd ?
 
@Pureferret ??
 
DSM
I have no idea why it go so many upvotes. It's about the hundredth itertools.product answer -- what's so special about this one?
 
3:39 PM
My mind is boggling.
 
That was my "what the actual eff" thought.
 
DSM
This is why Internet Points can't be taken seriously.
 
@Ffisegydd I don't see what's wrong with that, it's very helpful
 
@Pureferret I never said it wasn't helpful.
 
@Ffisegydd Well I upvote helpful stuff
helpful-> upvotes
 
3:42 PM
That's fantastic for you, but as DSM pointed out there have been 100s of similar helpful posts.
My shock was at one post getting so many in a small space of time.
 
@Ffisegydd Well they should also be upvoted...
@Ffisegydd Ah
 
DSM
Maybe it's like pet rocks. They were once a thing, briefly.
 
Some people juggle geese, the world is a strange place.
@Pureferret I'm not suggesting that Kasra has manipulated it, you understand, just an average post (and it is average, as there are plenty of others like that have been asked in the past) getting so many upvotes in such a short amount of time is quite unusual.
 
@Ffisegydd Things snowball, upvotes -> visibility -> upvotes.
 
DSM
Strange attractors.
 
3:46 PM
Yeah I know, I've seen it before, but it doesn't excuse it's shockingness :P It's particularly shocking that it was Kasra that wrote it.
 
@Ffisegydd Why kasra?
 
Because I've seen Kasra write very poor answers in the past, and to suddenly see one with 80+ upvotes was shocking :P
 
Maybe this is wrong of me, but I don't upvote when I think "this answer is useful", I upvote when I think "this answer is worthy of having a score of at least N+1, where N is its current score".
 
@Kevin yeah same.
 
Sure, the product post is useful, but I'm not going to upvote it, because it's not an 84 upvote quality post.
 
3:48 PM
@Kevin: uhm
>>> bool('False')
True
because the string is not empty.
Use input().lower() == 'true' perhaps.
 
@Kevin So you'd upvote if it was at ~10? 20?
Anyone want free rep?
15
Q: Modeling a Mage character from nWoD, using Django

Pureferret Goal Design a representation of a mage character from the World of Darkness RPG, as well their associated spells. Here is a visual representation of the schema. You can see it more closely on LucidChart if you like. You can also see my draft here and on YUML I have already made an ...

30 minutes until the bounty grace ends
 
@MartijnPieters Oops, I accidentally tested the code in my 2.7 interpreter, where bool(input("A: "))does in fact work.
Because calling bool on a bool does nothing, of course
 
:( :( OP tells good but doesnt accept stackoverflow.com/questions/28480446/… :( :( OP why u do this always?
 
@BhargavRao they appear to have accepted posts in the past. Perhaps they always wait 24 hours to see if any better answers come along?
If it is not a new user and they have shown to know about accepting before, then you just move on.
 
Heh, the other user made the same mistake as me.
 
3:56 PM
@Kevin yup, and got a downvote for it. I commented as to why their answer is actually incorrect.
 
I was trying to word a similar comment for him, but you saved me the effort :-)
 
@MartijnPieters Waiting, for tomorrow
 
Whoohoo, 2k helpful flags.
Yay me.
 
Ok, now he's changed from bool to eval
Which works, but is a little non-best-practicey
@Pureferret I'd upvote it if it was at 9, if I was in an excellent mood at the time.
 
DSM
4:06 PM
Martijn is 20x more helpful than me. That seems about right.
 
@Kevin Would you remove your upvote when it got to 84?
 
Probably not.
(If you conclude from my responses that my upvoting system is entirely illogical, you're probably right)
 
@Kevin and now it is deleted.
 
Today I am annoyed because one of my friends has started pronouncing "dangerous" with a hard G, and I want to determine if this is a reference to something, but I don't want to look unhip by asking him, and it's impossible to Google.
@MartijnPieters Aw, I would have upvoted if he changed it to literal_eval. So close!
 
user559633
I am now going to do that as well.
 
user559633
4:09 PM
DanGERous
 
Did you get my email @tristan-san?
 
Maybe if I google the IPA representation...
 
DSM
dan-hero-US!
 
Dang! erous.
 
DSM
Ooh, I like that one. 'Cause it makes you thing "Dang! Er[rone]ous."
 
Ok, the IPA character for a hard G appears to be... g. So much for googling that.
 
@Pureferret Your comment helped stackoverflow.com/questions/28480446/…
Thanks
 
0
Q: Reporting bash script failures to Sentry

Mikko OhtamaaIf I run a bash script with set -e it aborts with an error. I am running some maintenance shell script, along with Python application code, and I'd like to report errors from the shell scripts to Sentry as well. What options do I have? What kind of traps bash provides and what kind of command li...

mikko has come to the age... of questions
 
My conundrum reminds me of a Penny Arcade comic that goes, "Before the internet: 'what's that song that sounds like do do dooo do do?' 'I don't know, and we probably never will'" After the internet: 'It's the theme song for this obscure 80s sitcom. Here's the IMDB for each character, and I've added the first season to your Netflix queue'"
I must channel the pre-Internet spirit of "acceptance of the fact that you will never know a thing"
 
@Kevin yeah, that avenue was entirely open still.
 
4:18 PM
Maybe it was a matter of honor for him, not writing an answer whose method was already mentioned in a comment.
 
@BhargavRao You're welcome
 
I could understand that.
 
Lol, I'm the only upvote on that "Marjin Peters" question.
 
As much as I'm dying to learn all about Martijn's time management techniques, I don't think it's on topic for SO ;-)
 
DSM
4:20 PM
I don't know if it's close enough to be a dup, but that question reminds me of the one Martijn answered about "how are some people so awesome at SO?".
 
Ooh, yeah. Then he can just copy-paste the answer that he already wrote in the present. Thus saving even more time.
Remember, ontological paradoxes probably don't destroy the fabric of spacetime, so they can be safely used to farm rep.
 
@Pureferret @Kevin: Huh. The fact that my urls.py was pointing to the built in login view, instead of MY login view... Perhaps that's why I wasn't seeing those extra context variables. :(
 
DSM
The farming analogy makes sense. Kasra's product answer is like one of those inexplicably giant vegetables that showed up on the local news.
 
@Pureferret I have some recent answers too that are not accepted :P
 
user559633
@Ffisegydd just responded, cheers :)
 
4:24 PM
tristan has a new profile photo or is it old?
 
@aliteralmind It's always the way
@AnttiHaapala Just give me a second :p
 
Looks like a new photo to me. His other one had a transparent background.
 
@Pureferret @Kevin: Been so focused on the darn context variables, I never zoomed out to double check the more fundamental stuff. Wasted your time. Sorry.
 
DSM
I don't think the original was holding something, was it? (I'm not counting the black-and-white number from yesterday.)
 
("new" here being defined as "not the same as his previous avatar or the one before that". I can't guarantee that he never ever used it in the distant past ("distant past" being defined as, more than a week ago))
@aliteralmind To quote the great Philip J Fry, "That's impossible, because my time is worthless!" ;-)
 
user559633
i haven't used the current one before and i'd like to keep using it, but the alpha channel wants to be black, so i need to figure out why before i use it as my regular
 
@DSM Not wasted, now I know a bit about loing and context
 
DSM
?
Oh, misdirected, probably.
 
I get my warm fuzzies from assisting on a problem, even if my suggestions aren't useful :-D
 
4:35 PM
@tristan the profile photo is a gif!
obviously it is flattened with the background color and then converted
 
DSM
Always weird when I see pseudoKevin comment and answer.
 
I might one day change my name for clarification purposes. But just one other frequent poster with the same name isn't enough motivation.
There's got to be, like, three other Kevins.
 
This is why python is dying:
4
A: Sorting array elements using Arrays.sort

Antti HaapalaHaving compareTo is not enough; you also need to implement the Comparable<Card> interface, e.g.: public class Card implements Comparable<Card> { ... } In addition it is preferable that your class also implements the boolean equals(Object another) method that would behave as if it returned ...

I answered 1 java question and doubled my daily rep in 2 minutes?!?!?!
This I just came across in the triage queue
@Kevin here's a flag target for you: stackoverflow.com/a/28410455/918959
 
DSM
If Python is dying because Java SO users upvote a lot, then it's so weak it deserves to die. #klingonthoughts
 
NAA with dead link
@DSM I have spent >1 hour answering python questions today
 
4:47 PM
I dont think python is dying at all ... it seems like its the biggest tag on the site to me
 
If a language is dying when its tag doesn't get as much activity as Java's, then there are a lot of dying languages.
 
but i havent looked at any metrics to qualify that
 
@Joran it's not the biggest tag by far in terms of numbers, not sure about growth though.
stackoverflow.com/tags 7th in total numbers.
Growth you'd have to look at historic data for the trends.
 
I just regularly see several python posts on the front page(newest) ... there is probabyl some internal bias of mine going on too :P
 
We might be #7 in most tagged questions, but we're #1 in "most significant whitespace"! Woo!
 
4:50 PM
Eyeballing the numbers though, it seems that 5000 java questions were asked this week for 3000 python.
@Joran yeah there is :P lots of internal machinery for that (there's some meta posts somewhere).
 
DSM
I think Java's one of my excluded tags, so I never see Java questions at all.
 
@DSM i just usually go straight to /questions/tagged/python
so that might be why it seems like almost all the posts are python :P
 

« first day (1580 days earlier)      last day (3373 days later) »