« first day (1584 days earlier)      last day (3365 days later) » 

user559633
4:00 PM
feedback please/thanks: is this opinion based as an answer? stackoverflow.com/questions/28509481/…
 
@AnttiHaapala You wouldn't ask that ... Hint:- Press Enter
 
@tristan, inferring from PEPs isn't really opinion based
 
re-cbg
 
user559633
4:03 PM
cbg fizzy
 
There is a apple drink called appy fizz
 
@BhargavRao not true dupe
 
I want to buy something. It's basically a mechanical hand holder thing. You can adjust the arm to whatever position you like (so it's bendy) and then open the hand and clamp things into it. Does anyone know what this is called?
 
user559633
The dupe the asker deserves
 
Kinda like shop.pimoroni.com/products/… but bigger ideally.
 
user559633
4:04 PM
edit: nope
 
@AnttiHaapala Were you going to answer it?
 
@tristan Close. Basically I'd like to be able to hold things on a table for doing photography.
 
user559633
@Ffisegydd third hand?
 
@Ffisegydd, a clamp?
 
Yeah third hand is similar, but on a smaller scale. Maybe I just need to search for "big third hand"
 
4:05 PM
@BhargavRao the problem is the problem is for python 2 :P
and that answer
 
Oh. Then reopen?
 
Aha! Something like tinyurl.com/lrq4jvm might do
 
@Ffisegydd Lazy? Or "what's wrong with your desk"... or.... :)
 
@Jon well if I'm doing macro photography it's difficult to hold the object and photograph it.
 
@Ffisegydd, silly putty + matchsticks/toothpicks
 
4:08 PM
@Ffisegydd practice telekinesis?
 
I shoot a lot of macro :)
 
@MarkR. nice, not a bad idea. Easier to set up in a lightbox as well, though maybe not as easy to maneuver.
 
depends on the subjects, but yeah
 
@Ffisegydd or... use plasticine and do your own wallace and grommit/morph!
 
This has a dozen dupes http://stackoverflow.com/q/28545637/4099593
Someone GOOOONG pls
 
4:10 PM
Or I just steal a clamp stand and various bits from my lab.
 
stealing is always a good option
 
@MartijnPieters wrong gong?
@MartijnPieters should have gonged how do I copy list
 
You guys are misusing the word Gong.
 
Nothing
 
4:22 PM
Edited to make it better
People see some simple answer and downvote becoz they think it is wrong
 
I don't think you should say "your code is correct" in that answer. They're clearly getting an error message.
 
nearly correct
 
Yeah removed that
 
You go on to say "the correct way is:" and then correct their parentheses, but keep the weird format thing. You didn't explicitly say it, the implication there is that is the best way. But that's contradictory because you continue to refactor on the next line.
 
I just meant to tell him where to place the parenthesis
Should I remove that also?
 
4:25 PM
No, I just think it needs rewording.
Maybe something like "the correct way to place the parentheses", which gives the reader less opportunity to misinterpret you.
 
Yep. Will edit
 
(I don't really think any of these issues justify a downvote, btw)
 
@BhargavRao the note is wrong
>>> '''{}{}{}'''.format()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: tuple index out of range
 
Ah, I was wondering whether that would happen. True.
 
You also have annoyingly huge headers for such a small, simple answer.
 
4:28 PM
absolutely nothing to justify upvote
it is a newb, so you should teach .format() bc it has fewer issues
ever tried to "%s" a tuple?
>>> "%s" % ()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not enough arguments for format string
oh noes, you need to do
another parenthesis?
>>> "%s" % (())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not enough arguments for format string
nope :P
 
Yeah, but the OPs input string does not have such things.
 
>>> "%s" % ((),)
'()'
 
There are hell lot of errors
 
but op was trying to use .format()
"myfile.write(template.format()) returns nothing to which you are using % operator to concatenate" also this is very confusing
 
Hmm, maybe the misinformation about empty format is the cause of the downvote. Readers hate incorrect information even if it's harmless to the OP
 
4:31 PM
Damn. I got a dv because of the note?
 
Maybe!
 
it was there 3 minutes before you (maybe FGITWed)
 
Yep. But that didn't address the OP's error of mismatched parenthesis
 
user559633
stackoverflow.com/questions/28545440/how-works-in-python boo. i wish marked duped/closed questions didn't allow answers
 
@BhargavRao ofc it addressed, it told the exact solution
 
4:34 PM
Lol, Better leave the question for now. Got +8 and the dv brought my rep to a round value.
Hope no more upvotes or downvotes on that
 
@tristan that question deserves downvote
bc one gets the exact same question when posting, in the dupe list
 
But I liked falsetru's answer more that the FGITW. That was correct
 
nope, falsetru's answer is not more correct
 
user559633
@AnttiHaapala I wish there was a flag/remove option on answers that was basically "user looking to extract points from crap question"
 
I liked falsetru's caused it said about % , even if it was wrong
 
4:37 PM
opinions are like ... :D
 
user559633
religions. everyone has one and they all stink.
 
@tristan suggested that OP to go for python 3 :d
 
Yeah. It depends. Worst opinions are from the most inexperienced --- Some Chinese philosopher
 
user559633
Some Chinese Philosopher rocks! They opened for Some Dead Writer at Apathy Fest 2k12
 
4:43 PM
"If you meet Kevin on the road, give him five dollars" -- Ancient proverb
6
 
user559633
Oh starlord.
 
That question is too hard!!!
 
Only Ninjas can answer it
cv that
 
to/too is giving me a lot of trouble lately. Hope I don't have some horrible forgetfulness disease
 
4:48 PM
Hey that is still open? Unbelievable
 
Brb, refactoring KevinScript so all its syntax is colored shapes, before my aphasia fully takes hold.
I don't close low-effort questions, I just downvote them
"Lacks minimal effort" hasn't been a close reason for a long time
 
user559633
"Lacks minimalism" has been a common close reason for German record shops for a long time.
 
Bah, "unclear". This is the clearest question I've seen all year.
 
user559633
@Kevin yeah, i went unclear because "is shit" isn't a close reason
 
4:51 PM
Unless the voters mean it like, "it is unclear how you got all the way to SO without tripping over a tutorial that contains your answer along the way"
 
kevin, I usually google stuff using the string "stackoverflow" first :D
 
Damn the two guys who actually upvoted it
 
I upvoted it. What's the problem?
 
Protip :- your search term site:stackoverflow.com will only return results for your search term that are from the SO url.
 
I'm not sure how much is gained by using "site". top answers from SO usually appear first as it is. Seems like google is smart enough to realize that's what people look for anyway
 
4:53 PM
The question is clear, but not useful and doesn't show research effort. Therefore, it should be getting 33% upvotes and 66% downvotes.
 
(I mean, even without using "stackoverflow")
 
Unless you interpret the language in a boolean context and insist that it be upvoted only if it's both useful and clear.
 
@Reut it's a useful trick to know anyway. I use it with site:meta.stackoverflow.com a lot.
 
Whether a semicolon implies and or or is anyone's guess
 
Huh! 4 upvotes?. That guys lucky today (Just like I was yesterday)
 
4:54 PM
@Ffisegydd Yeah, I knew it already, but thanks :)
 
Kevin, Is this valid for the dupe stackoverflow.com/q/28546389/4099593
?
 
@BhargavRao I try to avoid answering uninteresting questions. If it's not a challanging I find it a waste of time. 99% of the time there is a simple answer somewhere in SO already, and I gain basically nothing from it. I also started promoting some of my answers to my careers account, which lead me to this decision
(lead me by showing me how much junk-answers of mine were there)
 
Incidentally, I don't condone downvoting a good answer to a bad question
 
He taught me that, we should not answer to bad questions
Well but didn't downvote as it is not wrong. Didn't upvote either!
 
Why not? We should answer any question that does not have a dup-target. I'm just to lazy to look for dup targets :)
 
4:58 PM
My perception is, most 1 rep users ask a single question and then never return. If this is so, then it doesn't matter what impression we give them, because they aren't going to make a habit of it.
 
Yeah, not speakin of dupes
 
Maybe you should have a stackoverflow test before you can ask a question to get to know the site
 
The 1 rep horde is immutable, you can't teach them anything one way or the other. Each one that leaves or grows into a useful user, will be replaced by two more.
 
some moronic tests like "find the answer to the question...." just to have people actually trying to use other features before posting
 
They should learn to use google more
Or do they do it on purpose?
 
5:00 PM
(devil's advocate: even if all 1 rep users are "one and done" as you say, there is still the possibility of word-of-mouth reputation for SO as a homework site. One guy tells his classmates "Yeah, I got downvoted and banned, but at least I got my answer", and suddenly there are 30 more users tomorrow)
 
the city I live in is not even on SO careers :(
I assume 99% of programmers with internet access end up in stackoverflow eventually
 
You from Isreal right? Love that country.
 
Really? Why? :D
 
Must work hard to not make remarks about switching off the caps-lock when trying to install modules: stackoverflow.com/questions/28526481/…
 
Just like that.
 
5:02 PM
lol @MartijnPieters
I want to comment: "Did you accidently uninstall your lowercase letters?"
 
Remember, being mean to users is how revenge-obsessed trolls are born
"How dare he tell me to not use caps lock" etc etc.
 
@Kevin which is why I vent in here and not in the comments.
 
@ReutSharabani Coz the country and Netanyahu are both good.
 
netanyahu? ahh well let's not go there....
 
Why he is a good guy?
 
5:05 PM
is he?
 
@MartijnPieters That's why I don't mind that chat is so hard to find. Less likely that anyone will discover we're talking about them ;-)
 
From Indian perspective
 
I have no idea what kind of guy he is from an indian perspective..
isn't chat stored forever? :D
 
Anyway, he is really a good guy and I like him. (Opinions may differ)
 
Nothing lasts forever, but certainly the transcript will be around for a long time.
Last I checked, it stretches back to the birth of the room
(but not to the room before this one, which we merged with. Pity)
 
5:07 PM
I'm not sure what you're basing this on, but yeah, politics are not to be discussed in a programming chat... If we agree it can be boring, if we disagree it can be frustrating. Why go there..
 
Everyone used to discuss politics here. Sorry bro.
 
well, if you want to discuss netanyahu - why do you think he is a good guy?
 
PLEASE don't discuss Israeli politics - it'll get way too many people way too riled up. Myself included.
 
I have observed that the unwritten policy is, politics is OK, but the ROs may shut down the conversation if it even looks like it will become uncivil
 
why do people care so much about Israeli politics? :)
I mean, is it specific to Israel? And if so, why? (this is a meta-discussion, do not close!)
 
5:10 PM
@BhargavRao as long as the conversation doesn't sour or start to bore everyone else to death.
 
@ReutSharabani Refusing. to comment
 
It does seem like conversations about Israel become heated much faster than conversations about, say, Canada.
 
For me, it's mainly the issue of human rights, and the Palestinians. I'm shutting up now.
 
Same here. Did anybody mention Canada?
 
@MattDMo I agree, but would a discussion about Sudan, or Syria, cause the same reaction with people?
 
5:11 PM
Well stop that too.
 
I'm genuinly interested
 
So. Kittens?
 
ok, stopping...
 
What is your favourite type of kitten?
 
I like fluffy kittens
 
5:13 PM
I like the one where it's sleeping and pawing at something in its dream and then the mother cat smooshes it down.
 
I like fluffy grey kittens. Not sure what the breed is called.
 
@Ffisegydd ones that are pan-fried in a lovely thai green curry sauce? RUNS AWAY
 
I like dogs
 
Googling "smooshy kitten" does not yield useful results, alas
 
puppies, specifically
 
5:14 PM
Puppies>Dogs>Cats>Kittens
 
@MattDMo you wouldn't want to eat me... I'm full of genetic defects... who knows what could happen :p
 
I like 3 legged puppies
 
@BhargavRao I should totally get into a catfight with you over that ordering.
 
I like turtles.
 
Yep turtles are better.
Turtles>Ntriples>RDF
 
5:16 PM
 
Any categorical ordering would be an oversimplification by its very nature. There are individual cats that are superior to individual dogs, and vice versa.
 
Don't worry, I'm not afraid of GMOs
 
@Kevin show me a cat that's been as useful as Lassie or The Littlest Hobo...
 
Arguably, the black cat from Neil Gaiman's The Price
 
5:42 PM
@JonClements Useful might not be the word, but Aineko from Charles Stross' Accelerando is quite the overacheiver.
 
I should have known that with you lot, it wouldn't be taken as rhetorical...
 
I'll take any excuse to talk about Neil Gaiman ;-)
 
@Kevin I love that story. Almost all stories by Neil I love.
I loved meeting him and having my book signed by him.
 
I'm jealous :-)
 
He is abso-bloody-lutely great.
The only thing he has against him is writing Blood, Snow and Apples. I may or may not forgive him for that one, one day.
I can no longer look at fairy tales the straight way.
I'm sure the writers of Maleficent read that story, and created a nicer variant of the idea.
 
5:46 PM
I liked that he did a live reading of the top three candidates of the "worst Neil Gaiman fanfiction" contest
Let's see if Google has it... I think it's this one
(uh, and by "fanfiction" I guess I mean "stories written in the style of Neil Gaiman" rather than "stories that have Neil Gaiman as a character")
 
Hahaha....
i feel like were being trolled. — Himarm 1 min ago
 
Haha.
No, I know about the harry potter books. I'm pretty sure this is something else. — Harrison Holmes 26 secs ago
 
Yeah, just saw that... you'd have thought they'd mention that in their question...
 
@Kevin The photo is a little blurry.
 
Cool :-)
@JonClements Yeah, 90% chance of troll
 
5:54 PM
But that's me with Neil signing a copy of Good Omens.
 
You need a speech bubble: "Sign that, or I'll show you my katana!"
 
Neil needs no threats. We were in a line with about 1000 people.
He stays until they all had a chance to speak with him.
 
I wanted Good Omens to be as good as the sum of Neil and Terry's individual talents, which would make it the best book among all books. But instead it was merely good :-(
 
@Kevin It was the book that introduced me to Neil, so out of all the books I could bring that was the one I picked.
My wife got Stardust signed.
 
I think my introduction was via NeverWhere. I like a good urban fantasy.
 
6:10 PM
I can now rest peacefully
 
Hmm, Mr "it isn't Harry Potter" added more details. 40% chance of troll???
 
Didn't get the reference.
 
I am referring to this post on Sci Fi, which we were discussing an hour ago
 
Not English, Russian. — Harrison Holmes 3 mins ago
That's a whole different kettle of fish suddenly.
 
Room language

    The official language of the room, and SO as a whole, is English.
 
6:19 PM
Oh yeah, now I remember, there's a magic stone subplot in The Brothers Karamazov. ;-)
 
@WalleCyril what has that got to do with discussing a guess-the-book question on SciFi?
 
nothing
 
user559633
Should I counter troll in Russian? (pretty sure it's a troll)
 
That scifi site looks so dark and scary
 
6:21 PM
reads back a little bit: "ah, a Neil Gaiman conversation, that's going back a bit ..." / "... hang on, surely ..." / "... well I'll be damned ..."
Nobody namechecks The Sandman?
suddenly feels very, very old
 
Sandman is probably my favorite comic
Picked it up from my university library during a rather unhappy semester. Blitzed through it in mere days and came out the other side feeling substantially less terrible.
 
It's of its age, but yes, it has a place in my heart too.
 
cbg
@tristan, ne nado
 
But oh man, the big hair and shoulder pads XD
 
Woah 800th prof view. I've not even seen so many people in my life
 
DSM
6:27 PM
Supposed-to-be-a-holiday cabbage for all..
 
Tomorrow's holiday here also. Cabbage :)
 
happy new year
 
It's Presidents' Day today, which is why I am on my couch
Remember to hug your president and tell him you care
 
DSM
I don't have a president..
 
Well maybe you should have been more huggy and caring then, and you wouldn't be in this situation.
 
DSM
6:31 PM
A hit. A very palpable hit. tip of hat
 
(of course, I have no way of knowing how huggy any of you are. Caring levels are acceptable, by my observation)
 
just realized it
 
What is President's day?
 
I actually never have used deepcopy
 
Washington's Birthday is a United States federal holiday celebrated on the third Monday of February in honor of George Washington, the first President of the United States. Colloquially, it is widely known as "Presidents Day" and is often an occasion to remember all the presidents, not just George Washington or Abraham Lincoln, whose birthday is also in February. The term "Presidents Day" was informally coined in a deliberate attempt to use the holiday to honor multiple presidents and is virtually always used that way today. With official names including Presidents' Day, President's Day and...
 
DSM
6:34 PM
@AnttiHaapala: probably wise. It's really, really slow.
 
Oh. Got it
 
I mean, I haven't even needed it...
 
I use deepcopy when one of my classes needs a copy method but I'm too lazy to implement my own
 
let alone would have considered getting it
bc I had commented "deepcopy is almost always wrong"
and then started thinking "whenever did I use it"
but I cannot remember a single instance
yet I have programmed python for 15 yrs
14
 
DSM
When I have instances with mutable state, and they're undergoing rapid development, I've occasionally used deepcopy to avoid having to keep confirming that the clone method is up to date.
 
7:12 PM
@BhargavRao done
cbg
@Ffisegydd cbg
 
DSM
@AnttiHaapala: I'm pretty sure that the question is right, and the upper limit is n ~ 10^19, not F(n) ~ 10^19.
 
could be, but in any case it ought to have modulo
no one can count the nth fibonacci at 10^19 without taking a modulo :P
 
DSM
That's why the OP has % 1000000007 in the answer (although it'd really need to be inside the function, not done as an afterthought.)
 
7:27 PM
0
Q: Create tokens from common bigram/trigrams

SamSuppose I have the string: "HMG-CoA reductase is a rate-limiting enzyme. HMG-CoA reductase is the primary enzyme in cholesterol synthesis." I would like to compute frequencies of tokens in the string. However, I want 'HMG-CoA reductase' to be one token (i.e., I don't want frequencies of the ind...

if it is indeed F(10^19) then one needs to use the matrix multiplication with modulo, IIRC I have done it somewhere but it was for C only
 
DSM
No matrices needed. You just need to use one of the reduction formula which is quadratic or better. I just used one and it only took 190ns to get the right answer. :-)
 
what reduction formula?
 
DSM
The trick for a lot of these is being able to write f(n) in terms of f(something much smaller than n). In this case, you have that F(2n-1) = F(n)^2 + F(n-1)^2 and F(2n) = (2*F(n-1) + F(n)) * F(n).
 
yeah, but that is also the matrix multiplication trick
that is you take the [ 1 1; 1 0 ] matrix, do the Nth power
keeping all the numbers within modulo
it is just that the matrix multiplication is easier to get right
5
Q: Numpy matrix power/exponent with modulo?

John SmithIs it possible to use numpy's linalg.matrix_power with a modulo so the elements don't grow larger than a certain value?

hmm not supported in numpy as is
 
DSM
Every such relationship has a one-to-one mapping between languages, so you're free to describe it in whatever way makes the most sense to you.
 
7:41 PM
ofc, was just saying that numpy implements matrix multiplication nicely, if it had the modulo trick builtin then that would be like 1 line in numpy :d
 
DSM
The OP is almost certainly running this on an online tester, and they tend not to incorporate numpy.
 
cbg
 
DSM
Cabbages for you.
 
0
Q: Build query from list of table names with unknown length using SQLAlchemy and Postgresql

pjgbI'm dealing with timeseries data, and I'm trying to avoid having a many-to-one-relashionship on every row of a single record table where all records are mixed together (since the series all have different number of columns). Instead I want to split the records between multiple tables to keep in...

there should be a close reason "this is too stupid"
 
I really need a job that's more code-oriented. I'm basically at a helpdesk position right now, wrote two batch files that are both basically just COPY ORIG\* DEST, and my boss thinks I'm a hero.
 
7:53 PM
@AdamSmith congrats
wanna switch with mine?
 
I think I'm suffering from big-fish-little-pond syndrome.
 
I do not know what I am suffering, but this is a small pond here, but all the bosses think they're big fish
 
DSM
No one at my office thinks I'm a hero. :-/ The only one who really understands what I do is better than me at it, which may be related. :-)
 
@AnttiHaapala small-pond-with-piranhas syndrome.
 
I am so glad they can set the target high
 
7:55 PM
@DSM the only one here with any programming ability is the network engineer, who's wearing many many many many hats and a "slow week" for him is about 60 hours.
 
never ever was something good enough
 
So I think the fact that he's able to delegate some coding now basically makes me Jesus in his eyes.
 
DSM
Many*4 hats is too many hats.
 
Well he's network engineer, compliance officer, security officer, I.T. purchasing, I.T. manager (de facto), and head of maintenance.
for both the companies that fall under our umbrella
and we have compliance audits next month, so his slow weeks are now more like 80 hours :)
add to this that his assistant can't image a hard drive without help, and I come out looking like my cabbage don't stink.
 
DSM
Poor guy. I'm not sure how good such an arrangement would look under a post-catastrophe audit-- "you have one guy doing all of this?!"
 
8:01 PM
yeahhhh we're in the process of re-structuring. We're non-compliant right now because of that
One guy can't be running both security and network, or we fail compliance
and the people who are allowed to touch networking can't touch terminals and etc
so he has to pass maintenance stuff off too
 
DSM
Aargh, came into the office to get some work done but I don't seem to be at all productive. :-/ Well, maybe I'm just here to offer moral support to everyone else..
 
I have those days
 
user559633
Heh, I got an accepted on a versioning dependencies question. I'm going to shop the answer around the office as a "hey guys, some smart, attractive person on stackoverflow says we need to version our deps"
 
8:17 PM
I don't think anyone would believe me if I tried that.
 
user559633
@AdamSmith I hope the guy doing 80 hours is getting well compensated for it.
 
@tristan no idea what his salary is like. None of my business and I like to keep it that way!
 
re-cbg
 
DSM
8:35 PM
More cabbage for Fizzy.
 
8:51 PM
@Ffisegydd I am not sure if you remember but you once told me about a timing module for python, it wasn't timeit but solved a similar problem. Do you remember it?
 
Hmm.
No. I always use timeit. Or %timeit in IPython.
 
ohh
 
dumb question, how do you launch a program from command line and not receive any output? I tried wine64 my-program.exe -opengl >> /dev/null but that didn't work
 
DSM
Depends on your shell-- you'll probably have to redirect stderr as well.
For example, I use bash, and &> /dev/null works to kill stdout+stderr.
 
oh run it as a daemon too, I think I was missing that part... zsh, by the way
 
8:56 PM
@Ffisegydd it was cProfile
 
Ah yeah!
:p
 
Took me a while to find it. But I am glad I did
 
DSM
@Vader: you might be interested in line_profiler/kernprof. Comes in handy sometimes.
 
http://stackoverflow.com/questions/28550098/how-to-generate-the-perm‌​utation-of-a-list-in-python dupe
 
@DSM no need for it now, But I will bookmark it for the future. THanks
 
DSM
9:00 PM
Hey, wait. Are you the same Vader who stopped being Vader?
 
Yes
I was only Vaderless for a day
 
Were you Anakin?
 
No @crowz :P
 
DSM
Time to escape, I think. Rhubarb for all!
 
rbrb dsm
 
9:12 PM
rbrb
 
 
1 hour later…
10:19 PM
grmbl
tactical downvotes make me grumpy.
 

« first day (1584 days earlier)      last day (3365 days later) »