{"QuestionId": 15996275, "AnswerCount": 2, "Tags": "", "CreationDate": "2013-04-14T06:08:40.730", "AcceptedAnswerId": "16006121", "Title": "How to add large number of circles without losing performance?", "Body": "

As I am building my simulator using createljs, I will need to have thousands of little circles ( 3 pixels diameter ).\nI can draw a circle on a shape graph, is this a recommended approach? or shall I use a bitmap?

\n\n

Any idea about the best way in terms of performance?

\n\n

Also, is it possible to set text antialias on or off?

\n", "Lable": "No"} {"QuestionId": 16103186, "AnswerCount": 5, "Tags": "", "CreationDate": "2013-04-19T11:06:40.423", "AcceptedAnswerId": "16103234", "Title": "Convert timestamp string to DateTime object in c#", "Body": "

I have timestamp strings in the following format 5/1/2012 3:38:27 PM. How do I convert it to a DateTime object in c#

\n", "Lable": "No"} {"QuestionId": 16155597, "AnswerCount": 4, "Tags": "", "CreationDate": "2013-04-22T19:57:04.273", "AcceptedAnswerId": "16165102", "Title": "Clojure: What is wrong with my implementation of flatten?", "Body": "

I've been working through problems on 4Clojure today, and I ran into trouble on Problem 28, implementing flatten.

\n\n

There are a couple of definite problems with my code.

\n\n
(fn [coll]\n  ((fn flt [coll res]\n    (if (empty? coll)\n        res\n        (if (seq? (first coll))\n            (flt (into (first coll) (rest coll)) res)\n            (flt (rest coll) (cons (first coll) res))))) coll (empty coll)))\n
\n\n

I could use some pointers on how to think about a couple of problems.

\n\n
    \n
  1. How do I make sure I'm not changing the order of the resulting list? cons and conj both add elements wherever it is most efficient to add elements (at the beginning for lists, at the end for vectors, etc), so I don't see how I'm supposed to have any control over this when working with a generic sequence.

  2. \n
  3. How do I handle nested sequences of different types? For instance, an input of '(1 2 [3 4]) will will output ([3 4] 2 1), while an input of [1 2 '(3 4)] will output (4 3 2 1)

  4. \n
  5. Am I even approaching this from the 'right' angle? Should I use a recursive inner function with an accumulator to do this, or am I missing something obvious?

  6. \n
\n", "Lable": "No"} {"QuestionId": 16229851, "AnswerCount": 7, "Tags": "", "CreationDate": "2013-04-26T06:12:22.437", "AcceptedAnswerId": null, "Title": "How can i for loop in parallel in python", "Body": "

I have two lists

\n\n
l1= [1,2,3,4,5,6,7]\nl2 = [1,2,3,4,5,6,7,8,9,77,66,]\n
\n\n

I want to display them on same lines

\n\n
\"list1 text\"  \"list2 text\"\n\nl1-1   , l2-1\nl1-2   , l2-2\n
\n\n

and so on

\n\n

so that if list elements finish then it should display blank \"\" in front of it but other side shows its own elements like

\n\n
for a,b in l1,l2\n     <td>a</td><td> b </td>\n
\n", "Lable": "No"} {"QuestionId": 16374803, "AnswerCount": 1, "Tags": "", "CreationDate": "2013-05-04T13:27:22.137", "AcceptedAnswerId": "16374844", "Title": "How to process only one column and convert unix time in text file in BASH", "Body": "

I have a text file with table like

\n\n
367612510.243586 717.860170\n367612512.493918 722.249134\n367668441.429983 692.407935\n367668479.810461 692.407935\n367668482.618858 727.953771\n367668515.150386 727.953771\n
\n\n

where the first column is UNIX time, and the second is some value. I want to display this list with human readable date and time in BASH. How to do it?

\n\n

It is possible to do it with additional script file and xargs, but I'm looking for way to do it in one line.

\n", "Lable": "No"} {"QuestionId": 16405909, "AnswerCount": 3, "Tags": "