« first day (1605 days earlier)      last day (3340 days later) » 

11:02 AM
I have a very strange problem.
I read a picture with Python/OpenCV. Then I draw by moving the mouse some small circles in red that look like a continuous line. Then I save the picture. Then I read it using OpenCV that lets me see the BGR colors of any pixel on which my mouse hovers on. When I hover on the red pixels: they are not having Red set 255 as I did in my program. Why ?
 
Have you asked a question on SO? If not, I suggest you do so.
 
cbg
 
@Ffisegydd ok, i will ask it but the website says my question are not bad and not well received by users
are bad *
 
Then you should write better questions, but that's no excuse to just ask your questions in here all day.
4
 
+1
@Kabyle a question you ask here should be mostly answerable with 1 message. and should be possible to ask in 1 message.
 
11:15 AM
Or they should be not appropriate for the main site, i.e. opinion based.
But the issue is you ask questions here and 1) there are a lot less people here than on the main site, and 2) if you get your answer, no one who has the same problem is likely to come here and find the solution.
 
@Kabyle anw your problem: 2 choices: you opened an RGB image as BGR, your blue is 255; or then the red channel is not saturated there (and thus less than 255). This is programming, not rocket science
 
user559633
who needs sleep? not me! i'm going to stay awake and live foreverrrrrrrrrrr
 
@tristan Puppy, stop using @tristan's account...
 
user559633
whoa why is my television talking to me
 
11:25 AM
stackoverflow.com/questions/28940662/… not reproducible with 2.7, 3.4
 
@Kabyle please don't bring new questions to the room.
 
haha you can't give all your rep
 
@Ffisegydd this room is about programming ! so leave me in peace and chat up your mouth please !
 
-_-
 
user559633
11:29 AM
lol
 
@Kabyle Leave this room in peace?
 
user559633
chat up your mouth please @Ffisegydd.
 
@Kabyle lolwut
your message has been flagged
 
user559633
@Kabyle we aren't your unpaid computer-help slaves.
 
anw I answered kabyle's question, hopefully correctly
 
user559633
11:31 AM
oh wait, we're not using master/slave because it's a tool of the patriarchy
 
@AnttiHaapala thank you very much. I will run my big application and see what happens. Then i let you know (but i am not harassing you, of course)
 
user559633
we aren't xir unpaid computer followers
 
@tristan did I take a gun and pointed it on your head to answer me ?
 
hehe :D
xir?
 
user559633
@Kabyle it felt like it! guns remind me of the patriarchy so next time maybe add a trigger warning and hash tag it
 
user559633
11:47 AM
i have such a hard time reading books on tech
 
user559633
i get like 2 pages in and immediately want to start writing toys
 
@tristan :)
 
@tristan I am going through the exact opposite. I started reading Django documentation three weeks back and now I have no clue what I wanted to do.
 
user559633
@thefourtheye if only we could combine forces
 
user559633
or work together
 
user559633
11:50 AM
i used to just haul through documentation and never start a project
 
user559633
now i do the opposite
 
Only if you were a puppy...
 
user559633
can be arranged...
 
Awww... Then we can combine forces... :-) Soon the world will be ours... @JonClements I found a partner for the world domination program :D
 
user559633
11:52 AM
i just need to find which puppy i want
 
“which puppy”??
You want to choose one over the other? Q_Q
 
user559633
achievement unlocked: used wilhelm scream in work presentation
 
user559633
@poke haha, i'm going to get photoshop and make some horrific superimposed image of all four puppy faces so i don't need to choose
 
@poke I ll save you the time to go over ugly puppies... Just pick the ultimate cute one
 
@thefourtheye I’m actually wondering if that’s a puppy or just a small dog.
 
user559633
11:56 AM
small dog.
 
user559633
if someone can give it gold teeth, i'll use it
 
And a monocle.
 
@poke whatever it is.... it's pissed off though :p
 
And an "OBEY" baseball cap.
 
Well that photo was taken when I was two human years old... So, I am technically I am a Puppy
 
11:56 AM
 
Oh, who is this old man?
 
user559633
 
user559633
that might just work
 
:O Who is this big old fat man?
 
user559633
what's the name change delay on SO? 30 days?
 
user559633
11:58 AM
because i want to use that dog image and have the name "FANCY DOG CONNOISSEUR", but i'm afraid an upcoming client will view my SO profile
 
I think so
 
@tristan Hmmm, whats wrong with that? They might think that you are dog person... That's it, right?
 
user559633
@thefourtheye haha, not sure that my client will "get" internet humor
 
whoshouldyouvotefor.com/index.php thinks I should vote labour hmm
 
12:00 PM
@tristan I ll be damned if my interviewers don't get internet humor... :(
 
user559633
@Ffisegydd where's "TEAM JACOB" in the results? this survey is bollocks
 
user559633
'Bedroom Tax'? isn't that the name of the workout when one partner is significantly heavier?
 
Few years back, atleast in companies I worked before, people just used to get resumes, go over the past work and ask few questions from geeks for geeks or some standard questions... But these days, they first search with your name in the internet...
Looks like a tough one. Any takers?
0
Q: How to use namedtuples in multiple inheritance

Björn PollexIs it possible to create a class that inherits from multiple instances of namedtuple, or create something to the same effect (having an immutable type that combines the fields of the base types)? I haven't found a way to do so. This example illustrates the problem: >>> class Test(namedtuple('O...

 
user559633
12:17 PM
oh god, kevin is not on the starboard
 
user559633
can someone call him and ask if he's okay?
 
@tristan errr what @Kevin's not on the star board.... the apocalypse is nigh!!!!!!!! PANIC!!!!!!!!!
 
user559633
i typically combine the two when i need to relax
 
12:20 PM
@Ffisegydd omg... that tells me "Green"
 
user559633
what's the current tax rate in the UK? i thought it was already near 50%
 
Bahahahaha
Depends on the bracket.
 
20, 40 and 45 @tristan
 
user559633
say around 150k pounds a year
 
user559633
ah, alright, so 50% tax rate on top earners isn't a weird increase
 
12:21 PM
GIVE ME YOUR JOB
 
you get I think 10k free, then it's 20% for the next 28/30k
 
Yes
Then it's 40% up to about 100k
 
then it's 40% until about 150k, then it's 45% on everything over that
 
Not sure when 45 kicks in.
 
user559633
@RobertGrant haha. i don't really have a job, i have many jobs
 
12:23 PM
@tristan I'm wondering whether that's a good plan for me as well
 
user559633
that's weird. 150k/yr is far different than say, 500k/yr
 
Yeah but you need rich people to stay
 
user559633
Do you? (or rather, where do you think they'll go if you actually track % of time living in place)
 
If you want their tax at all :)
People live 6 months of the year somewhere else
 
user559633
12:26 PM
Sure, but if western europe and north america played nice on that, it's not like the person would move to afghanistan for 6 months
 
Yeah if they ever do that :)
 
user559633
i'm sure the US will buy europe sooner or later :]
 
Yeah the US totally has money
 
user559633
"I mean, I hate living in North Korea, but paying 50% tax? No thanks!"
 
But there's massive incentive for one place to not play nice and attract everyone to it as a tax base
E.g. new zealand, or abu dhabi
 
12:28 PM
plenty of places for rich people as tax havens
 
user559633
The UK should renew the Trident nuclear deterrent BRING BACK NEPTUNE, GOD OF OCEAN
 
user559633
@Kevin oh good, you didn't die
 
user559633
i was worried your life force was being drained
 
You are really VERY helpful, man !!!!!!!!!!!!!!!!! I really thought this problem will kill me because I have a big headache in a larger program, but now I saved the picture in PNG and the pixels I colored in full red (255) are displayed correctly without any loose of intensity !!! You downvoted me but I will give you all my points in 2 days. I am from Algeria but rakastan Suomia ja kalakukko ja kalevalaa :) — Kabyle 54 mins ago
 
I can neither confirm nor deny allegations of my demise.
 
12:34 PM
254 rep Antti. Time for an 80s Finnish montage!
 
@Martijn the only answer that's really any good on that datetime dupe is next = (x.replace(day=1) + timedelta(days=31)).replace(day=1)
 
I got 200 rep yesterday :-) ... On the puzzles SE where it doesn't matter -_-
 
@Kevin netcraft AND starboard confirm it: you are dying.
@Kevin nice
 
I brute forced a solution using twenty lines of code. Pretty good rep to effort ratio there.
 
I am in top 37 % overall with 1 answer
 
12:36 PM
Impossibly intelligent mathematician questions give me a headache.
 
@JonClements I've done old.replace(month=old.month % 12 + 1, year=old.year + old.month // 1) before, but if it's about the first day than yeah.
 
that is a bit hard without bruteforcing
all I can think of still requires tabling a lot
 
In any case, the OP has shown no research effort, so I don't put too much research effort into the dupe search either. :-P
 
I got "declined" not an answer for:
-5
A: mysql group by and sort each group

EJPDid you try using ORDER BY 'TIME'

:D
well, one can think of that as a partial answer, but to me it is just a question comment, and blatantly wrong
 
Ah... I wrote a lot of C++ code with lengthy strings like in Python "..."\n"...". Need to compile the code to see what it has to say about it. Keeping fingers crossed.
 
12:40 PM
hehe I got many declined flags recently :d
but does not matter, soon I can delv all the crap
 
@AnttiHaapala wat…
 
got like 5 declined out of 100 recent flags (most helpful)
 
@AnttiHaapala Don't worry, I casted one on your behalf...
 
@AnttiHaapala mysql accepts group by clauses with fields without expressions? I would get an error with that query on mssql =/
 
ah the "did you try" was added by bluefeet
so that makes it look like a "comment" :D
 
12:43 PM
I wonder what's gone on with the edit on this post - an answered has modified their post to say it was referring to the OP's original post, which has since had a suggested edit that looks reasonable, but possibly contrary to the OPs OP
 
the original answer was "order by 'time'"
which will sort every tuple like it contained the text 'time' :D
 
@AnttiHaapala question mark
 
My flag got declined for this
 
@thefourtheye what did you flag it as?
 
Spam.. :(
 
12:45 PM
:D
I just try to get my 500 helpful flags fast before I have delvs
 
My last declined flag had this:
 
when I realized that searching for "http://www.google.com/search" is very fruitful for NAA
 
> Please remove the Remove from git but keep in working directory question from the list of duplicates as it’s not really what this question is about. – poke Mar 1 '14 at 16:37 declined - We can't modify that list, and it's not really worth reopening and then closing it again just to remove a question from the list.
 
when I get to the 500 helpful flags
I will not get declined anymore since I will look through my fingers everything (or try to cast a delv instead)
 
why you people care about flags? :D
 
12:48 PM
I have only three declined flags, and those were declined because the mods were too lazy.
 
@thefourtheye our language mentioned in this question stackoverflow.com/questions/28942381/…
 
@AvinashRaj Yup, just saw that :-)
 
hmm, I have 662 helpful flags, 14 disputed, 6 declined...
 
but i can't able to read that..
 
@AvinashRaj gold badge at 500 helpful
I had 58 1 month before
now I have 352
 
12:51 PM
@AvinashRaj I recognize Punjabi, Arabic, Tamil, Chinese
Where do you find stuff to flag?
 
@thefourtheye I did 100 flags now by searching for "http://www.google.com/search"
there were lots of (upvoted, accepted!) answers that said "did you try http://www.google.com/search?q=words+from+your+title"
 
Oh... Nice trick to get flagged gold ;)
 
these were 2009-2011 mostly
and genuine questions, not just "gimme codez"
Like "how is the operator precedence in java between || and ?:"
"did you try google: operator precedence java"
accepted and 3 upvotes for example
 
Looks like we are doing the cleanup. I wonder if these badges were there few years back
 
12:56 PM
I also did go through some lowest voted answers in many categories
 
hrmph. Not a big fan of how mac handles workspaces :|
 
12 downvotes for a good answer :D
 
@AnttiHaapala an answer plus a bunch of comments at the top. Should have led with the actual answer.
 
Telling users they're wrong is lots of fun, but it belongs in the comments section.
 
actually can't blame anyone, C is a horrible language standardswise
and the C99 standard is full of errors
 
1:03 PM
Calling them "horrible" doesn't maintain the neutral tone that the site ought to have, either.
"wrong" is objective, "horrible" is inflammatory
 
true :D
 
is there any way to "fake" localhost as an https:// site?
 
yes, you do a snakeoil certificate
and run a ssl proxy there
 
Posting wrong answers while criticizing others' wrong answers doesn't sound like a good strategy for getting work... ;-) — R.. Aug 7 '10 at 18:21
 
Unclear or too broad; there is a code dump without specifying what help they require.
It is basically a low quality do my GCSE exam for me question.
 
1:08 PM
The last sentence in the original revision seems to indicate that they need help because it doesn't work.
Which is itself not actually a question, but "it doesn't work" is a small step up from a contextless code dump
 
@Kevin doesn't work how?
 
@MartijnPieters You gotta love the indentation on that one. :)
 
That's the off-topic -> debugging help requires expected output close reason right there.
 
I expect that's a rhetorical question but I'll answer anyway because I'm bored. At a glance, 66% of the time it prints the answer and prints "incorrect" without asking the user for input. OP seems to have gotten confused about the respective purposes of input and print.
(this is assuming that their indentation is only messed up on the post and not in their actual file)
 
@AnttiHaapala you are Ukko Ylijumalan of Python and OpenCV :D
 
1:13 PM
And the other 33% of the time, they get 'str' object is not callable because they didn't do string concatenation properly.
 
@Kevin There was one of these GCSE programs yesterday where the OP put their print functions inside input functions: stackoverflow.com/questions/28927246/random-maths-program and couldn't figure out why it was printing None...
 
New programmers often have a poor understanding of how print works at all.
 
does postgresql have any operation like upsert built in?
 
You see them asking "why would I want to return a value when I can just print it?" all the time.
 
Someone posted a complete working program, which used techniques that were obviously too advanced for the OP, but they deleted their answer after I mentioned it was an exam assessment question & linked them to the relevant reddit page
@Kevin Fair call. Maybe there's a method to Haskell's madness: you need to have a degree in CompSci to understand how to do IO properly. :)
 
1:25 PM
Bah... got an un-accept for a really iffy answer.... on stackoverflow.com/posts/28939378/timeline - sighs
 
I wonder if it would be possible to make print return the value it printed, without making >>> print("thing") produce output twice on the REPL
 
@JonClements where can you open that (the first time I see that view)
 
we could change the repl's behavior to "don't print the value of an expression if the last thing sent to stdout is equal to the expression's repr". But that has a zillion corner cases.
So... No, I guess.
 
@Antti any time you want... just replace the post id :) There's user some userscripts that add it as a link to posts for you automatically... check the sopython wiki for useful userscripts
 
On a more serious note, before C, IO was generally handled by special statements in high level languages (and in assembler it was really gnarly - you had to man-handle CPU interrupts). Relegating IO to library functions was considered a very radical innovation at the time.
 
1:27 PM
Who needs IO when you can just look at the LED bank on the front of the computer to see the contents of each register?
 
@JonClements That is an iffy answer. Often new posters think they can mark more than one answer as accepted, and happily check any answer that 'works'.
 
yeah
"I can understand that"
fortunately this is python
and there is no undefined behaviour
 
Well... it works for the example data (which turned out not to be the real data), and it's correct, so although it's not the best way to do it it in my opinion, don't feel it's worthy of a downvote... maybe a comment
 
I have regained the checkmark after saying something along the lines of Glad both answers were helpful to you! Note that you can mark only one of the answers as accepted however; pick the one you feel helped you most. And yes, it is fine if that's [fill in name of other answerer]'s post. :-).
 
hoho :d
 
1:29 PM
@JonClements it'd get a stern comment from me in a code review.
 
@Kevin Don't go there! Alternatively, you could do what C does: return the number of characters printed. But then I guess it will muck stuff up in your REPL.
 
Well, if it's fine for the OP - I really don't care. Just don't want anyone else with a similar problem to think that's a way to do it that's going to be in the least bit robust...
 
Crackpot plan: make print return a value except when it's inside the REPL.
 
just downvote :D
I upvoted you and downvoted the other
after reading the quesiton I decided to upvote the solution that uses itertools groupby :d
 
Link to documentation with example in an answer, response of "can you provide example"
 
1:32 PM
@Kevin yay for inconsistent and magical behaviour!
 
I'd complain "but it's bad when identical code works differently inside the REPL than outside", but we already have divergent behavior: for i in range(10):\n\tprint(i)\nprint("done") is valid code most of the time, but a syntax error in the repl because there's no empty line after the loop.
 
plus the OP should be thankful for a good edit from myself & @Martijn :)
 
@Kevin BTDT, except LEDs were still a bit experimental back then, so they were incandescent bulbs. :)
 
@PM2Ring Yeah, when I wrote that comment I thought "isn't this anachronistic?" but I couldn't think of a better name for tiny lights.
 
@Kevin that's the hazard of an indentation based language.
 
1:35 PM
Someday nixie tubes will come back in style, just wait and see.
 
Can someone help me to compile this from source github.com/Kilian/f.lux-indicator-applet ?
 
@thefourtheye I wrote one of the 3 answers to that, but so far none of us have votes. And now the OP is going chameleon on us. :( You'd think someone with 7 gold badges and 43.1k points would know better...
 
I expect that project can be set up by using its setup.py file.
I'm being intentionally vague about "using", since I don't actually know how to install projects with any kind of dependency.
 
install_requires="""
    six>=1.4.1
    markupsafe>=0.18
    slimit>=0.8.1
""".split(),
for example
 
Ah, this quote from the docs looks useful: " Additionally, the distribution will contain a setup script setup.py, and a file named README.txt or possibly just README, which should explain that building and installing the module distribution is a simple matter of running one command from a terminal: python setup.py install"
 
1:41 PM
Kevin: I'm on Ubuntu btw
 
I suggest running that command.
 
@Kevin They were wonderful. And more than a little mesmerizing. You knew you were looking at high-tech stuff when it had a Nixie display.
 
Django! This is the content in the urls.py file in the app folder. Two possibilites. Which should i go for? dpaste.com/0YPK3EW or dpaste.com/0M4HWRF
 
@PM2Ring I have no idea about that question :(
 
@Emyen, I like the second one, because if you typo the value as views;index then you'll get a syntax error right away. Compare to typoing 'app.views;index', which is not a syntax error, so the error might go undetected if it's on an uncommon code execution path.
Devil's advocate: the first one is better because you import one less module, which saves your program a thousandth of a second.
I guess it depends on how much you trust your own typing ability!
 
Hi guys, can anyone tell me how I would go about hosting python restful services in Apache?
At the moment I'm using FLASK which isn't fit for production code
 
Why not? It's perfectly fine for production code :)
 
I need to actually host the python using apache
 
I have no input to give, as I am a simple desktop developer peasant.
 
Unless you mean you're using Flask running it via it's development server mode
 
1:50 PM
I'm running it using command line
 
@thefourtheye The question itself is a bit scary, partly because it's not clear what it would mean to inherit from multiple namedtuples. But in a comment on the question the OP says the effect would be to create a namedtuple with all the fields of the parent namedtuples. So that's what my code does.
However, the OP's last comments says he wants " a class that inherits directly and indirectly from namedtuple", so I don't have a yamming clue what he really wants to do. But I bet it's an XY problem. :)
 
@PrimeByDesign well, I'd suggest regarding the flask docs on how to deploy using apache then
 
Ah I could deploy flask with apache?
 
yes - it's in the deployment docs :)
 
wonderful!
thank you x
oops
ignore the kiss
 
1:52 PM
wtf is this? Agreeing to the Xcode/iOS license requires admin privileges when using git
 
@PrimeByDesign just look at flask.pocoo.org/docs/0.10/deploying
 
haha I've just been messaging my girlfriend I've been putting x at the end of my messages
 
I thought X's were hugs. Nothing wrong with a manly hug.
 
great! thanks @JonClements & @Emyen
isn't O a hug?
so you could do x(little kiss) X(big kiss) o (little hug) O (big hug)
 
1:54 PM
Well, X traditionally comes first in "XOXOXO", and "hugs" traditionally comes first in "hugs and kisses", and I'm assuming they're isomorphic
 
OxOxXxoOxoXoOxXxx
ah
maybe I'm mistaken
but I always thought on cards you put xxx
(three little kisses)
 
Or maybe my assumption is wrong. It's not like inventors of slang are necessarily well-versed in set theory.
 
@Kevin thanks. got it running
 
Most commonly the X is considered to stand for "Kiss" and the O for "Hug" but some people see them the other way around. (en.wikipedia.org/wiki/Hugs_and_kisses)
 
I didn't even know that X and O meant that.
 
1:56 PM
I interpreted an "X" as the crossing over of the arms during the hug, and an "O" as the mouth delivering the kiss.
 
I thought X was for sex…
 
One of my clients was on twitter this morning after talking to BBC Surrey about the village where I use to live... kinda cool
 
@Kevin Same her. The X looks like four arms overlapping.
 
But just as easily, one could interpret the O as the encircling arms viewed from above, and the X as the radial creases of pursed lips.
 
@poke Three X's was for sex i guess.
 
1:57 PM
@poke heck - our PM used to sign off text messages with LOL - which he thought meant "lots of love"
 
@Emyen Or three kisses?
 
@poke both mabye.
 
@JonClements That’s awesome.
 
I thought three X's was for comically high-proof moonshine.
 
2 of my problems are solved today thanks to this forum, thank you so much gays
 
1:59 PM
@Kevin And in Australia, it's a beer brand
 

« first day (1605 days earlier)      last day (3340 days later) »