UPDATE: My new book, "Data Push Apps with HTML5 SSE" is out and selling! Get it from O'Reilly here: http://shop.oreilly.com/product/0636920030928.do Or from Amazon here: http://www.amazon.com/dp/1449371930 Or from any good bookseller.


I'm director at QQ Trends, a company that solves difficult data and software challenges for our clients. (We often have freelance projects, so get in touch if interested.)

UPDATE: currently looking for a part-time CSS/JS programmer. 理想は東京所在、日本語が読める方。Interesting project(s), you will definitely learn something.

(And, of course, please do get in touch if you have interesting challenges that you would like our world-class experts to work on!)

Typical work: doing fun stuff with data (fixing, mining, etc.), web sites (front and back-ends), trading strategies. Research: trading strategies, computer go, machine translation, understanding context, AI search algorithms. Languages: C++, PHP, R, javascript, and many more.

I'm British, living and working in Tokyo for almost 20 years. Human Languages: English, Japanese (fairly fluent, 1 kyu), some German, Chinese and Arabic.

(Contact me at dc at qqtrend dot com: please mention you are coming from StackOverflow, so I know it is not spam.)


Easy ways to irritate me on StackExchange sites (whether my own question or someone else's): 1. Downvote without a comment (N/A/ if someone already left a comment and you just agree with it, of course); 2. Answer in comments. Other than that I'm a really easy-going pragmatic guy :-)

1d
accepted How to do cumulative logical operations on mutliple columns
2d
comment How to do cumulative logical operations on mutliple columns
If I only want this to operate on v.1 .. v.9 in a 50-column xts object, how do I specify the columns it should use? Or do I just subset x first?
2d
comment How to do cumulative logical operations on mutliple columns
Off-topic: do you have a link explaining why mean does two passes? All I found so far was a link to the code itself: github.com/wch/r-source/blob/trunk/src/main/summary.c#L430 I couldn't quite grasp if this was for when your vector is full of large numbers, or has numbers of very different magnitude, or just for when the vector is very large... anyway, this was for the final stage of a report, so I'm neither CPU bound, nor needing more than 2d.p. accuracy :-)
2d
comment How to do cumulative logical operations on mutliple columns
Thanks David, Pascal. Made the example more reproducible.
2d
revised How to do cumulative logical operations on mutliple columns
More reproducible example
2d
asked How to do cumulative logical operations on mutliple columns
2d
comment How to automatically label a cluster of words using semantics?
Stéphanie, if you don't have enough clusters to train an algorithm, follow his advice in the first paragraph; if you do, or ready for when you do, follow the advice in the second paragraph :-)
Jul
1
comment Group by time AND another dimension in R (xts matrix)?
I'd change the question to describe the actual format you want. I suspect a matrix output might be easier; it will certainly be a different approach.
Jun
30
answered Is there a way to make Using server-sent events persistent?
Jun
30
awarded Nice Question
Jun
30
comment Group by time AND another dimension in R (xts matrix)?
With 10,000 codes, do you expect 10,000 output rows for each code for each week, i.e. even if some of those codes were not found in a given week? Or do you just want output rows for when there was at least one occurrence of a code. (So you might get 15 rows for week 1, 20 rows for week 2, 12 rows for week 3, etc.)
Jun
26
comment How to ask whether a dish is pescetarian-friendly?
Is it animal flesh you are avoiding, or all meat products? It is very common to find animal-based stocks used in seemingly vegetarian or fish-only dishes. Even if your Japanese is good, asking about the dashi can get confused looks, as there is little awareness of why this should matter.
Jun
25
comment What kind of nuts are eco-friendly?
@user2289 Assuming grown organically, and the water isn't getting polluted, that "one gallon of water" will be 100% recycled. So from a long-term sustainable point of view, water required per nut is not an issue. (Of course, I imagine your comment was also that California is currently in a drought, and burning fossil fuels to import water, etc. But apparently an ounce of red meat uses 106 gallons, compared to 23 for an ounce of almonds, and with the same protein %. ) (See uk.businessinsider.com/…)
Jun
23
comment Reading Server Side Events in Python using sseclient
In CasperJS, I'd do this by making a request to an html page first, with a cookie file set up (so casper - actually the underlying phantomjs/slimerjs engine - records the cookie then sends it back on each request). If the Python sseclient library does not have any built-in support, you'll need to use another Python http client library to do the request, extract cookies, then add a custom header to your sse request. (Probably just as quick to patch in cookie support to sseclient, though!)
Jun
22
answered Reading Server Side Events in Python using sseclient
Jun
21
revised Dividing hh:mm:ss by an integer in Javascript
Added sugar.js version.
Jun
21
answered Dividing hh:mm:ss by an integer in Javascript
Jun
20
revised Track down what is putting icons on my desktop
added 440 characters in body
Jun
19
answered How send Sever Sent Events on POST using PHP?
Jun
18
revised Track down what is putting icons on my desktop
added 223 characters in body
1 2 3 4 5