« first day (901 days earlier)      last day (4062 days later) » 
00:00 - 15:0015:00 - 23:00

3:04 PM
@MattH any hints?
 
@evan54: Not from me I'm afraid, no experience with QT.
 
3:20 PM
hi guys
 
Howdy @SomeoneSomeoneelse
 
@JonClements , I'm fine.u?
 
blerg, PyPI is struggling.
 
afternoon again chaps
 
so anyone is an OpenCV genius guy?
 
3:22 PM
@someone - nope - hardly touched it myself
 
@JonClements , well it is kinda complicated
 
Ummm, the start of Lily Allen's "Littlest Things" sounds really just like Cat Stevens' "Wild World"... wouldn't have thought of that had they not come back to back on the music player...
@someone you can count me out I'm afraid - have you looked on the main site for similar things that may help?
 
@JonClements, the only library I found that can compute EMD(earth mover's distance) is the OpenCV library
 
Without looking that up, I'm not even sure what EMD is used for ;)
 
i worked a bit with EMD before (missed the rest of convo)
what do you need?
(I went for Anderson-Darling test in the end instead)
 
3:28 PM
@JonClements , to compare two histograms
 
dont use emd
use either Kolmogorov-Smirnov or Anderson-Darling in my opinion
 
@BasJansen well, et me post the question
 
haha ok
 
lemme read about CV a sec
 
3:31 PM
If I just know what is this "signature" parameter ,I would compute that parameter using numpy then i would convert it back to the "CVMAT"
 
its an array
that has datapoint + weight
you currently have a non weighted array
correct?
 
I'm afraid to ask what is a weighted array??
 
if so transform your array to have a second row with all 1s
if they are of equal weight
you might give more 'credit' to a specific value
and as such give it more weight
 
when referring to histograms (you then get a weighted histogram)
 
3:32 PM
let me read again what u wrote to fully follow u
 
transform it into [[1,1],[2,1],[3,1]..
real life example
 
@BasJansen ,I C go on, u r making it so clear
 
i measure m/z values and intensity
and i want a histogram on m/z values
but the strength of the signal (= intensity) is extremely relevant
so i weigh my m/z values by the intensity
clear?
 
@BasJansen , m/z stands for ??
 
eh.. mass over charge but that is irrelevant for the example ;)
 
3:35 PM
i c
 
should have called it just X and Y
 
yeah that would be better
I just found that computing the EMD is the best metric to compare the shape of two histograms
I want to compare how well one histogram shape is similar to another
 
i know
dont use emd
i could reference serveral papers about why it's crappy
i suggest reading up on the Kolmogorov-Smirnov algorythm
or Anderson-Darling (if local perturbations are also important)
 
I'll google it
 
lemme dig thru my reference manager
 
3:39 PM
yes pls
 
Young, 1977
 
@BasJansen ,it would better if you can provide a python library that apply the algoriths
 
Proof without prejudice: use of the kolmogorov-smirnov tests for the analysis of histograms from flow systems and other sources
KS is ... super easy
bin a histogram
make a PDF
determine biggest difference, compare to critical D value, reject or accept hypothesis
anyhow, i'm going to catch a train
 
@BasJansen , Thanks for ur help
 
no worries
 
3:42 PM
nice to meet u
 
data is my expertise ;)
well... i like to think it is (but i am known to be delusional)
 
@BasJansen, u helped me alot
thanks
 
4:07 PM
@Everyone: hello, and a good day to you
 
4:19 PM
Hi
 
this person has put a lot of effort into their question: stackoverflow.com/questions/15816475/…
but has shown absolutely no evidence of any effort spent on solving the actual problem
and the actual problem does not seem like one i would particularly want to solve
 
@bernie nicely formatted - but reads more like a primitive tech. spec. than a "real" question
 
4:41 PM
must not downvote @MartijnPieters for using OP's awful ternary.
 
Hey, still editing.
 
Hi Folks,
I need your help in responding to the question: codereview.stackexchange.com/questions/24717/…
 
@GodMan responding to your own question? :P
 
No Wooble. I need someone's help in figuring out if my implementation of finding a substring in a string in O(n) is correct or not. And, where did I respond to my question?
 
4:56 PM
Maybe "in responding" is ambiguous here?
 
Oh. Please forgive me !
 
@GodMan the implementation seems correct, but nothing like some unit tests.
If you're worried about the complexity being linear or not, it is.
 
Code review for reimplementing something that's probably faster in the builtin implementation seems a bit odd though :)
 
True, I'm assuming it's just an exercise for kicks
just a little thought @GodMan, what if the string you're looking for is empty? or None? or larger than the "original"?
corner cases are... cornery =)
 
Actually, in many places, I see people expecting a O(n^2) algorithm for this purpose. So, I thought I'll try my own little version with O(n) and see if I can make it work. It worked for many cases for me.
 
5:28 PM
@GodMan I submitted a new case the code misses for your unit test.
 
5:44 PM
I am always surprised how little attention XML (elementtree, lxml) questions get.
0
Q: Python search data within XML elements

Mark RyanI thought this would work for searching for tag values of "error" import xml.etree.cElementTree as ET xml = """ <tag1> <tag2> error </tag2> <tag3> working </tag3> <tag4> <tag5> error </tag5> </tag4> </tag1> """ for event, element in E...

two low-rep answerers, 11 views, no votes on the answers.
 
@Poik: Awesome. nice one.
 
@MartijnPieters Getting an XML tag might help
 
I rarely need to parse markup, so I don't know the libraries very well ...
 
@MattH Duh. Thanks.
 
6:02 PM
hi guys
 
Hey.
 
I'm dying for ur help guys
 
@GodMan what are you trying to achieve? Have you done any research into string search algorithms? Personally I like Boyer-Moore'‌​s
 
@SomeoneSomeoneelse: just ask the question, no need to ask to ask. :-)
 
@MartijnPieters thanks in advance
 
6:04 PM
ooh
He thanked you in advance! Now you have to help, or it will cause a paradox!
 
@SomeoneSomeoneelse: Sorry, no idea about OpenCV.
 
@Kevin lol no it i sok
 
@Kevin: I eat paradoxes for breakfast.
 
But... But... The space-time continuum D-:
 
@MartijnPieters ,thanks for caring
 
6:05 PM
np
 
I'm sure the bounty will attract many qualified answerers. You usually have to wait until the clock runs down a bit more, however.
 
@MartijnPieters what comes out the other end?
 
@Kevin , I hope you are right
 
It's like an auction. All the action occurs in a flurry right at the end.
 
lol
I hope so
 
6:07 PM
@MattH: Pure awesomeness!
@MattH: And Doctor Who episode synopses for some reason. But that's pure awesomeness too.
 
@MartijnPieters There we go, vote's almost all around... excluding the guy who couldn't string a coherent sentence together.
 
More importantly, there is an accept vote for me now. :-)
 
6:27 PM
Fun fact: receiving a downvote that is then quickly undone after you reached the cap again upsets your reputation counter at the top.
Your actual reputation doesn't go up, but the rep-for-today count is increased by 2 points, and every time you get another +15 points, the top-bar updates with +17 instead, until you reload the page.
A reputation recalc (stackoverflow.com/reputation, hit button at the bottom) fixes this.
But, I then downvoted something.
Then undid the downvote when the post was improved.
Now I have one more point than I should have had..
and my day-so-far score is back to +2 extra points.
and you can only request one recalc per day.
It'll probably correct itself at UTC 00:00, but for the rest of the day I have a bonus point.
 
@MartijnPieters There are lots of little specialized areas like xml that get little no attention or votes. People vote when they feel confident to evaluate the question or answer, so trivial answers to easy general questions get loads of votes, but complex answers to specialized questions get few. Like this one:
1
A: Annotating with Count not working how I expect it to

Gareth Rees1. Quick explanation When you test a many-to-many relation against None in a Django queryset, as you do here: Q(profilearmor__profile=None) that matches rows where there are no corresponding rows in the many-to-many relation. So your query self.armor_category.armor_set.filter( Q(profilea...

Those of us who answer questions in these areas are used to the situation, of course.
 
Upvoted for sheer completeness.
dinner time
 
another upvote from me for breadth (maybe an explanation of SQL joins was out of scope for that particular question, but impressively done)
 
It's quite common in the Django tag for askers to be Python experts but total newbies when it comes to SQL. So I thought there was a chance that even this level of database knowledge might need explaining.
See for example this comment, where
The only SQL I (believe) I'll ever use is enough to pull an entire table into Python or R where real magic happens. Not sure it's worth it! That's exactly why I chose Django, because it allows me to avoid mucking with things I don't know! — Brandon Bertelsen Mar 26 at 4:39
... where the asker actively resists the possibility of learning how to write SQL queries!
 
6:43 PM
That's a well-made point. I can't help feeling that someone like that doesn't have a very bright future in this field. Thankfully your answer can be used by countless others
 
@GarethRees All the cool kids are moving to noSQL anyway.
 
6:59 PM
@GarethRees, "little specialised areas like xml"? If anything, XML questions seem to be ridiculously overrepresented on SO, at least in the Python category.
I always refuse to upvote them regardless of relative quality, because I don't think people using XML should be encouraged.
 
more-specialised than the general Python questions which garner so many upvotes
 
That's true. I agree with the general point, just not with the specific example of XML.
I wish PyPI mirrors would set explicit user agents, like PEP 381 demands.
It's pretty much impossible to figure out how many legitimate users my packages have.
 
7:22 PM
also difficult to tease out the number of people who actively use the package versus how many people download and later determine it doesn't meet their particular use-case (presuming that even happens)
 
At least most mirrors do set proper user agents. But when 21,931 of the 22,635 downloads one of my packages has are definite mirrorbots, it's hard to know how many of the remaining 704 are legitimate. Maybe I'm providing updates for literally nobody.
As long as I'm not getting any bug reports, I'm just going to assume everything's working for everyone.
 
that's what i was going to say: the bug reports are the true test. though that may not be very conclusive either: i recall Mike Bayer lamenting the lack of bug reports related to SQL Alchemy. and you know that in a project of that size and scope there must be many bugs
 
 
1 hour later…
8:40 PM
Never mind, already taken care of.
 
I think I'm gonna regret answering that one ...
 
@mgilson you can always refuse to address inane follow-up comments/questions :-) btw, i believe the reference is to this: stackoverflow.com/questions/15821205/…
 
enough for me.
 
Yeah ...
 
night all
 
8:45 PM
have a good one
 
 
2 hours later…
10:36 PM
happy coding, one and all. like it or not i'll be back tomorrow
 
00:00 - 15:0015:00 - 23:00

« first day (901 days earlier)      last day (4062 days later) »