3,898 karma · joined February 20, 2012
You can also see some of the pastels I drew and animated here: http://fooladder.com
Email me at yankov.alex at the popular electronic mail service from Google.
[1] http://www.maximumpc.com/article/features/old_school_monday_...
An end of day aging process was supposed to look at all positions marked "old" and trade into ones marked "new". Some positions may go through several transition until all the resultant positions are "new", so the process recurses until it finds a fixed point for the day.
This day the aging process for this very bespoke trade went a bit haywire and instead of booking "-1 old position, +1 new position" it booked "+1 old position, +1 new position". Seeing that is still has +2 old position, the process booked "+2 old position, +2 new position", it then booked "+4 old position, +4 new position". This went on for 16 iterations until the auto breaks kicked in and stopped the process. A quant on watch saw the process fail and restarted it causing the positions to double 16 more times.
This was billion dollar deal that grew by 2^32 times plus now existed in old and new variants for a total notional in quintillions of dollars. It was 7pm when the quant called me over because I was the only other guy still there and by happenstance I heard of similar issue happen on my old team. I fixed the position for the night but the permanent solution was made later in normal business hours.
As an aside, when a similar error happened on my old team, the recursion continued until the process ran out of stack. That was when the 16 recursion limit was put in. (The position didn't grow huge that time because it was booking "+0 old position, +1 new position", so the growth was arithmetic and not geometric)
A member state of the European Union can do that, yet it is still a union. There are quite a few anti-EU parties in Europe, yet none have mustered enough support to leave yet.
At the end of the day each state does a calculus of what the benefits of staying are and what are the maluses of EU laws they don't like. If the cons outweigh the pros, the state should leave; forcing them to stay in a bad marriage is tyrannical.
> You shouldn't get to simply join when the going is good for you, and stab the rest of the nation in the back only when the going is bad. Relationships should be maintained while they are mutually beneficial, if the benefits are once sided, there is no reason to keep it.
September 1752
Mo Tu We Th Fr Sa Su
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
"cal 9 1752" on the other hand gives: September 1752
S M Tu W Th F S
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Maybe python doesn't auto recognize the timezone?EDIT: Actually this is pretty bad because python gets all the days of the week before September 1752 in North America wrong.
bradly's case, like darkarmani pointed out is a communication issue. His wife assumed that since she is paying for the shoot she would own the resultant work. The photographer probably though otherwise and had a contract to back this up. For a contract to be considered legal there must be a "meeting of the minds" and clearly it didn't happen here. I blame the photographer here, because they usually have their own contract templates that they know well. They should correct any asymmetric of information that may result. Having the client hire a lawyer to examine the photo contract would be more expensive than hiring a photographer in the first place.
TL;DR If photographers don't want lawyers fees cutting into their service fees, they should be upfront about what they are peddling.
[1] http://en.wikipedia.org/wiki/Russian_Internet_blacklist#Know...
Code reviews are invaluable in education other developers about your code, how to support it and how to develop on it. But information should also flow the other way and the give the reviewers the opportunity to present the accepted practices to the developer. In the long term, this saves developer time as the code base stays coherent. Code is read many times and needs to be understood by many developers even though it is written only once.
Thanks.
SELECT "c"."id"
FROM "Customer" "c"
LEFT JOIN "Order" "order-1"
ON "c"."id" = "order-1"."customer"
GROUP BY "c"."id"
HAVING coalesce(SUM("order-1"."total_price"), 0) > 1000
is translated into select(c for c in Customer
if sum(c.orders.price) > 1000)
How does the python version handle nulls? They are explicitly coalesced into 0s in SQL. In python sum([1,numpy.NaN]) evaluates to nan. I think this code will do something wrong.I am not sure what flavor of SQL is beind used, but why are the table names and the field names surrounded by double quotes? They make the query look unnecesierily hairy.
Good job otherwise. Always glad to see people contributing to the community.
Yet that is the world we live in. Phones are expected to have all these features and phone numbers are expected to be able to accept text messages.
Just two weeks ago I wasted an hour waiting for my friends because GV silently dropped MMS multi-person chat messages sent to me. Not ok.
In a case where monetary supply is fixed (ie gold), if you hold on to it for a period of time, you will get more goods for it than now. That 'more' will correspond to economic growth over the period. You will have the same fraction of the purchasing power pie as before, but now the pie is larger. Does not look like a win to me, but this is the judgement call for the reader.
PS. Yes, I am simplifying and ignoring some thing like velocity of money and fluctuations in economic output, and growth of capital, human resources, and technology.
My point about intraday data with corporate actions wasn't really about the difficulty with corporate actions, but rather the leaky abstraction of trading present in the slides. To give you credit, I don't know what issues Quantopian addresses. On the other hand, has any one tried running Zipline-backtested strategies in real life? Does any one know what issues aren't addressed by Quantopian? Corp actions was one part, T-cost model was hinted at in the slides, but was any though given to borrow costs and availability? There leaks everywhere. It is not that you don't seem like smart guys who made this cool thing freely generously available to everyone, but that you seem like you spent too little time downtown NYC.
PS. Fully adjusted bars are nice, but they have an epoch to be adjusted to. Unfortunately having an epoch that is not today() means you can't add today's data to it. If you can't add today's data to it, you can use this system to generate real trades to trade. Now you need two sets of data and two sets of code to work with. Good luck.
You have to deal with intraday prices now. Got those? Well they are not split or dividend adjusted. Good luck.
Looking at the Benchmark Game Go vs Java7[0], why is Java 2x to 8x faster than Go for many benchmarks? Is the jvm that optimized these days or are those Java7 programs super tweaked for performance?
[0] http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
Perhaps my reply to Linus was snarky, but in my experience Beautiful Soup was easy to use for parsing HTML, where lxml for parsing XML was not. Granted the XML I had to parse used name spaces, but there was no reason for it to be difficult and there was no reason for poorly documenting which xpath features are supported.
Yeah, running huge Excel sheets is a risk. Running huge Excel sheets with VBA is a risk and a pain. Powering Excel with python is a step in definitely a step in the right direction and would save me personally a lot of pain and boost my productivity right now.
Unfortunately it is a step I can not take. Excel is supported by Microsoft and Excel Bloomberg plugin is supported by Bloomberg. DataNitro is supported by a company founded last year that doesn't have single person's name in their About Us or Contact Us pages. If I was to build a sheet depending on their technology, would a wrong misstep two years down the line blow up my business?
Stamina seems to replenish only when moving the character. Used up all stamina digging at a rock? Take a jog around the block and come back.
If someone is going to setup and run a forum figuring out how to deploy a RoR should be a minimum barrier to entry worth an hour of research.
In the second before the announcement UNG was trading at $18.72 High and $18.55 Low. According to some minutely data I saw 400,000 shares where traded between 10:29:00 and 10:30:00; I believe this ties out with the first Nanex chart where there are 490,000 shares traded, with majority of it coming in 400 ms before the 10:30:00 mark. 4 Seconds after the 10:30:00 report release the price had stabilized at around 18.51. I will consider this $18.51 the fair price with all resonably fast algos having made their post release moves.
Let us assume that there was a single trader/algo who got the report early and executed all of the 400,000 share sells 400ms before 10:30:00 and all other market participants only bought. Additionally assume that the average fill for these sell trades was the average of the High and the Low at (18.72 + 18.55)/2= $18.635. I believe this fair because looking at the first Nanex graph the early trades are somewhat uniformly distributed between the high and the low. In a simple arb on UNG, where the trader went short 400ms before the the announcement and closed the position at the fair price a few seconds after the announcement he stands to make a profit of (18.635 - 18.51) * 400,000= $50,000.
For a trade that lasts 5 seconds, making $50,000 is nothing to sneeze at, it is not that much in grand scheme of things. Additionally other ETFS and futures were impacted and could have made more or less money.
TL;DR: If one guy captured all the profit from the early UNG trade, the max he made was roughly $50,000.