Thursday, 19 April 2018
What is Ripple for? (Part3 - Processing transfer requests in a bank)
Ripple addresses the problem of international cash transfers between banks: sounds like something that should be electronic and instant, doesn't it? Well let's dig dipper and have a look at what actually happens when a client requests a transfer...
Part 1 - Introduction
Part 2 - Cash Management
Sunday, 1 April 2018
What is Ripple for? (Part2 - Cash Management)
Ripple addresses the problem of international cash transfers between banks. This is part of a larger area called Cash Management. So what is cash management and why are international cash transfers so slow?
Check out Part 1 here
Saturday, 31 March 2018
Image processing, NLP and blockchain visualisations with Google APIs
On Tuesday this week Data Science SG organised a meetup at Google's premises in Singapore.
Background
Google offers APIs for Machine Learning (ML APIs), which are pre-trained AI algorithms. Out of the box, ML APIs allow you for instance to categorise a sentence from a news article or distinguish between a picture of a cat and that of a turtle.
On the other end of the spectrum Google provides TensorFlow which allows you to build your neural network model from scratch: this involves tinkering with layers, biases, functions and providing your own training data.
Half-way in between is AutoML where you can train the pre-trained ML APIs using something called transfer learning. With transfer learning the first layers of the neural network model are kept while the last layers are modified and re-trained with your own data.
The three speakers were Google developer advocates. What is a "developer advocate"? Well apparently it is someone who toys around with Google APIs mostly for fun and gives demos about it, which sounds like a pretty cool job to me.
Image recognition
Markku Lepisto (@markkulepisto) showed how he trained AutoML at identifying stamps on letters received by banks. Because he didn't have the original scans of actual customer data, he wrote a small Python program to automatically generate training data by combining images of stamps with random pages from scanned books downloaded from Project Gutenberg.
Sara Robinson (@srobtweets) briefly described the Google Natural Language API, which is pre-trained at doing categorisation -for instance working out that a sentence from a news article talks about baseball, as well as very simple sentiment extraction -extracting entities and positive/negative sentiment from of a customer review for instance. The online tool also allows you to visualise the syntax of the sentence (grammatical breakdown).
Then Sara asked: how would you go about building a model using your own custom categories?
She showed how to do it using TensorFlow which comes with Python and C++ interfaces. Some of the APIs are low-level (construct the model layer by layer), others are wrappers such as Keras.
For training data, Google BigQuery has large datasets ready to be used such as a list of StackOverflow questions along with their tags (C#, SQL, Javascript, ...).
The last part of the evening was left to Allen day (@allenday) in front of a hungry audience.
Allen decided to use BigQuery to analyse transaction data from the Bitcoin and Ethereum blockchains.
BigQuery synchronises with the Bitcoin ledger every 10min, which is good enough to have a near real-time view of the Bitcoin blockchain.
Allen used Gephi to develop interesting visualisations showing the movement of funds between wallets... More details here.
![]() |
| This a Google Easter Bunny |
Friday, 9 March 2018
What is Ripple used for? (Part 1)
This is the first of a series of videos about Ripple and its applications.
1 - The main Ripple products
2 - What is Cash Management?
3 - What happen behind the scenes?
4 - Use of XCurrent
5 - Use of XRapid
Sunday, 17 December 2017
Tools to Trade Cryptocurrency from Singapore
iPhone wallets
Buy and sell crypto from/to SGD
Both Coinhako and Coinbase work in Singapore with xfers, which is a payment gateway located in Asia. You can transfer SGD to xfers from a local Singapore bank account (DBS or HSBC for instance). At the time of writing (December 2017), xfers is going through maintenance issues.
FYB-SG allows only purchase of BTC. You can fund FYB-SG with a local bank transfer in SGD. Prices on FYB-SG are often higer than coinhako.
FYB-SG allows only purchase of BTC. You can fund FYB-SG with a local bank transfer in SGD. Prices on FYB-SG are often higer than coinhako.
View the balance of wallets
- Bitcoin: Bitcoin Block Explorer
- Ethereum: Etherscan.io
Buy crypto not listed on exchanges
- Shapeshift: allows you to swap a crypto currency for another.
Store crypto safely
Hardware wallets
- Trezor: supports BTC, BCH, BTG, DASH, LTC, ZCASH, ETH, ETC
- Ledger Nano: supports many more (XRP,...)
Paper wallets
- Bitcoin: https://www.bitaddress.org
- Supports encryption of paper wallets (password protected with BIP38)
- Decrypt a private key previously encrypted with a password and display various formats (can be useful when using Electrum for instance)
- Ethereum: https://www.myetherwallet.com
Extract crypto from paper wallets
Safely store paper wallets
- Rent a safety box from your bank (DBS, HSBC for premium customers only)
- Rent a safety box from Certis Cisco
Thursday, 13 April 2017
Autonomous, Trustless and Unstoppable (Part 5): 3 Examples of Blockchain Tech Applied to Finance
The previous two videos (part 3 and part 4) described the blockchain ideas from a technical point of view with the example of Bitcoin. This video lists some of the organisations that are actively working on platforms with ideas derived from blockchain concepts that can be of use to the financial industry.
- Post-trade processes: R3 which is a distributed ledger platform targeted at banks and specifically does not rely on a chain of blocks.
- Cross-border payments: Ripple.
- Smart contracts: Ethereum, the virtual machine / language / programming environment to write decentralised applications and smart contracts.
Friday, 24 March 2017
Andreas Antonopoulos Explains the Looming Bitcoin Hard Fork
Andreas (who wrote Mastering Bitcoin) was at the SMU in Singapore on Monday March 20th to talk in front of a packed auditorium.
He asked the audience: "who in this room heard about the hard fork?"
He went on to ask what are the fundamental reasons behind the current bitcoin divide. He said it essentially shows a split between 2 cultures: the culture of hardware and the culture of software.
People who develop hardware are used to long development cycles, extensive testing in order to avoid very costly recalls. People developing software -such as myself- are used to very short development cycles and higher tolerance for errors. Bugs in productions can be fixed with patches. There is a necessity for constant maintenance. Software that is not maintained eventually rots.
Trustware is a new type of development that has the tough aspects of both software and hardware: it's hard to write, hard to test and hard to maintain. Shipping a new version is painful because it requires consensus. It is also the beginning of problems that you cannot foresee until the code is live.
The workarounds you introduce with trustware (Andreas used the example of a 2011 bug fix in Bitcoin core to avoid an issue when popping 4 arguments from the stack) remain baked into the consensus rules forever.
Trustware is a new type of development that we are yet to learn about.
A few quotes
"the most secure companies online are those that are open and public". Attempting to protect data within walls is eventually futile because it gets hacked from the inside.About private blockchains:
"The market will eventually decide. Until then, let them build it, let them call it a blockchain."About ICOs:
"Don't be in it to trade, be in it to learn"
Friday, 6 January 2017
Christmas in Kuching
Christmas period is very quiet. Most shops are closed. Coffee shops are still open though.
Surprisingly the town is much more animated at night: woke up at 3am when a group of car tuning dudes were trying out their engines right outside the hotel. They looked like they were preparing for a Fast and Furious night race. There is an active motor racing culture in Kuching. Several cafes have a garage or car racing theme. The best one is Feast and Furious which shows off actual racing cars and motorbikes collected by Alex 'Stmrock' Wong, a local biking fan.
Lots of quirky little cafes. Even in low season people queue up at Black Beans Coffee to buy some freshly ground Sarawak coffee.
If you're into lavish dinner buffets you can find good ones for under MYR100 (SGD30) at the Carvery, the Hilton Waterfront Cafe and the Pullman.
Going to Kuching from Singapore is quick (the flight lasts a bit more than an hour). I paid SGD360 return during the Christmas period when booking 2 days in advance.
Going from the Kuching airport to the city centre by taxi is less than MYR30.
Monday, 31 October 2016
How to Choose What to Eat? Three Easy Guidelines
How do you pick what you eat?
"I listen to my body, I eat what I feel like eating" this is tricky since our natural drives (hunger, cravings, feeling full, feeling sick) are evolutionary traits that make sense in the context in which we evolved: food scarcity. When food is available all the time some of those natural drives are harder to read.
"I count calories" is a model that doesn't quite fit the purpose as discussed in a previous video...
Sources:
- For details behind glucose metabolism, fat storage, muscle gain through short high intensity weight training: Body by Science by Doug McDuff who also gave a number of talks and interviews available on Youtube.
- Video from What I've learned describing visually the chemical reactions that take place in the body when you eat either alcohol or sugar.
- Self-tested techniques for fat loss, slow-carb diets, blood sugar stabilisation using low GI food and muscle gain using short high intensity weight training: The 4-Hour Body by Tim Ferris.
- Healthy eating in general with justification for each food type, detailed explanations on the role of hormones in fat storage: The Calorie Myth by Jonathan Bailor.
- Detailed explanations for the reasons behind cardiovascular disease, the role of sugar in inflammation as well as oxidation of certain categories of lipoproteins (cholesterol) and why it's not about saturated fat: The Great Cholesterol Myth by Jonny Bowden.
- Nutrition and metabolism from a scientific point of view, detailed explanation of why thermodynamic calorie counting is wrongly applied to food, the risk in misinterpreting statistical results from scientific papers. The World Turned Upside Down by Richard Feinman.
- Food choices and supplementation specifically aimed at improving general mood and mental performance through fine-tuning of neurotransmitters, look up all Youtube videos by Steve Fowkes, in particular this Google talk. Steven's detailed breakdown of how body energy metabolism works is here (in the context of Alzheimer's).
- For cutting-edge info about nutrition, health, self-experimentation (bio-hacking): the Dave Asprey's podcast Bulletproof Radio.
Sunday, 8 May 2016
Autonomous, Trustless and Unstoppable (Part 4)
How does a blockchain system establish distributed consensus?
Shooting location: Senjogahara marsh and Yuno Lake, Nikko, Japan
Sources:
Mastering Bitcoin Andreas Antonopoulos (free on-line reading, ebook on Safari Online Books).
Part 1
Part 2
Part 3
Shooting location: Senjogahara marsh and Yuno Lake, Nikko, Japan
Sources:
Mastering Bitcoin Andreas Antonopoulos (free on-line reading, ebook on Safari Online Books).
Part 1
Part 2
Part 3
Subscribe to:
Posts (Atom)





