HN user

cheatdeath

252 karma

sean.oflynn |AT| me.com

[ my public key: https://keybase.io/seanoflynn; my proof: https://keybase.io/seanoflynn/sigs/YHN3RTNUCTN5qYIJcF2zLbasQFG5iVLbs8ISHeiXJVY ]

Posts17
Comments31
View on HN
www.rte.ie 1y ago

Man suffered a minor injury after being hit by drone propeller

cheatdeath
2pts0
swissramble.substack.com 3y ago

How Much Money Did Chelsea Spend?

cheatdeath
2pts0
www.convertmyunits.com 5y ago

Convert My Units – Natural Language Unit Converter

cheatdeath
2pts0
pos.toasttab.com 5y ago

Toast Delivery Services

cheatdeath
2pts0
careyscloud.ie 8y ago

Deploying an OpenStack Cloud on Kubernetes

cheatdeath
2pts0
cheatdeath.github.io 9y ago

Loading and rendering 3D skeletal animations from scratch in C# and GLSL

cheatdeath
1pts0
www.wsj.com 9y ago

CFTC Poised to Modify Source-Code Proposal

cheatdeath
2pts0
www.npr.org 9y ago

Publishers' Dilemma: Judge a Book by Its Data or Trust the Editor's Gut?

cheatdeath
1pts0
www.seanjoflynn.com 10y ago

Building a BitTorrent client from scratch in C#

cheatdeath
4pts1
www.bloomberg.com 10y ago

China’s Factory to the World Is in a Race to Survive

cheatdeath
2pts0
www.bloomberg.com 10y ago

Blockchain Company Wants to Reinvent Companies

cheatdeath
8pts0
www.bloomberg.com 10y ago

Inside the Nondescript Building Where Trillions Trade Each Day

cheatdeath
2pts0
www.irishtimes.com 10y ago

Employers: don’t blame millennials if you can’t hang on to them

cheatdeath
3pts1
www.bloomberg.com 10y ago

One Irish China Expert Is Taking the ‘Hard’ Out of Hardware

cheatdeath
12pts7
www.bloombergview.com 11y ago

Quirky IPOs and Rogue Brokers

cheatdeath
2pts0
www.bloomberg.com 11y ago

Virtu Restarts IPO with Plan to Raise Up to $314M

cheatdeath
1pts0
sniperinmahwah.wordpress.com 11y ago

HFT in My Backyard

cheatdeath
193pts129

Thanks for the comments! I'm all for improved readability. I definitely wasn't aiming for much performance wise, at least initially. These were two areas (of many) that I felt could do with some improvement (especially the file IO). I will look into making some modifications like those suggested when I get a chance.

I guess I've just been assuming any Roman characters are English, some definitely might be Pinyin. I generally try not to stare at peoples screens for too long haha. I did an intro to Chinese (Mandarin) class a few years ago so I'm aware of Pinyin but have forgotten almost everything (except some of the bits I found particularly interesting like word order for times and places, how numbers are represented and a few other things).

In Hong Kong, I sometimes see peoples screens when I'm using public transport. WhatsApp audio recordings are very popular, sometimes I can see the entire conversation is just audio recordings back and forth. Other times it's Chinese (I can't differentiate which), sometimes English, often a mix. I've only seen someone drawing characters with his finger once.

Thanks.

Actually organising the write up forced me to tidy up the code much more than I otherwise would have. I definitely find C# to be one of the more readable languages although I have had to debug and untangle some C# messes before.

Yeah I remember changing it to a SortedDictionary but I changed it back. I can't remember exactly why, possibly because it's supposed to be sorted by raw UTF8 bytes rather than a nice neat C# string and I didn't want to start using byte arrays for dictionary keys. I guess it only needs to be sorted when in the BEncoding format and it felt better to keep the internal structure as simple as possible. The tradeoff is it doesn't support incorrectly encoded torrent files – I'm really not sure how much of an issue that is.

I'm not that familiar with .NET Core. It doesn't look like MiscUtil is compatible with it.

The executable project has some minor references to Mono.Posix just so it can catch kill signals while running in the Terminal and die gracefully.

Both dependencies can be removed quite easily from the project.

I agree there are other problems, but most of the issues in this case study could be resolved by googling "work hours in Melbourne" or "waking hours in Melbourne".

Is it easier to arrange a common time with someone in a different timezone or someone who is in the same timezone but works a night shift?

- Add people from your contacts: swipe down from the main screen -> add friends

- Add people by username: celebrities often post their username on other social networks, you can find aggregate lists

- Add people by "snapcode": hold the camera over someone else's phone while they display their snapcode, your snapcode is the yellow QR code thing you see when you swipe down from the main screen

That list is out of date - there's an updated version on wikipedia: https://en.wikipedia.org/wiki/Visa_(document)#Visa_restricti...

Not sure if "powerful" is the right word either. It's more of a list of the best passports to have if you want to go on holidays. "Doesn't require a visa" usually means those countries don't require visas for short non-business trips (anything from 14 days to 6 months). E.g. you can visit the US with a German passport for 3 months for a holiday but it's extremely difficult to get a visa to move there indefinitely.

It's interesting people always cite the UK's stamp duty on share transactions as an example for how to stop high frequency trading. The rate is 0.5% when buying and 0% when selling. Market makers (of which high frequency traders are a subset) do not pay this.

http://www.legislation.gov.uk/ukpga/1997/16/section/97

Edited extract:

"Stamp duty shall not be chargeable on an instrument transferring stock of a particular kind on sale to a person or his nominee if— (a)the person is a member of an exchange (b)the person is an intermediary"

"an intermediary is a person who carries on a bona fide business of dealing in stock and does not carry on an excluded business"

Very interesting. Both the Premier and President (when he was Vice-President) have visited Shannon in recent years. It barely makes the news relative to when the US President visits.

I believe they are also very interested in the agri-food industry in Ireland (Ireland is the second largest exported of baby formula to China).

"Chinese Premier Li Keqiang arrives in Shannon for two day visit to the West of Ireland" http://www.shannonairport.ie/gns/about-us/latest-news/latest...

"Visit of Chinese Vice President Xi Jinping to Shannon" http://www.irishexporters.ie/visit-of-chinese-vice-president...

"Ireland second largest exporter of infant formula to China" http://www.farmersjournal.ie/ireland-second-largest-exporter...

I'm not sure that's the best way to counter the quite common "I don't have anything to hide so I don't care if they spy on me" reaction.

As the other reply to your comment shows, many would say that it's very unlikely a government agent would bother or want to watch them having sex.

I usually counter by reminding them that it's not just about them - it's about journalists, whistleblowers, lawyers, judges, activists, politicians, etc. Should the government be able to access their communications and track their online activities? People generally understand why that is a bad thing. While everybody absolutely should be worried that their personal online activities are being tracked, it seems like that's a harder sell.

He paid a company called Edge (http://edgefinite.com/) to extend the functionality of TT (https://www.tradingtechnologies.com/products/trading-analyti...).

Page 49 of full CFTC document - https://www.dropbox.com/s/ego1blhnylgs7sx/Appendix.pdf

"I asked Edge to design 3 more functions specifically to help try and hide my orders from these people. I do not know if this can be described as HFT, to me it is just giving me the ability to have some extra functions that my base trading software (TT) does not give me..."

A max loss is probably the first thing you should code!

It's not so easy though. What if you have a bug in your pnl calculator? Also, do you just block all new orders when you hit the max loss or do you liquidate your positions when you hit the max loss - because that's more code you could have bugs in. Maybe you cancel initiating orders and go to market on liquidating orders? Maybe you have code to limit the number of orders/size you can be working simultaneously - might have a bug in there too!

What if someone clears out the book i.e. a huge sell orders clears out all the buy limit orders and your pnl prints down massively for a millisecond? Should you also sell when this happens - probably getting a terrible exit price or do you wait and see if the book repopulates?