Stefan Angrick

Mozilla's Thunderbird email client is a stellar piece of software backed by a great community. But one of the few things that don't work well for me straight out of the box is its default font size. The default font is rather small, which can be a problem on high-res “Retina” displays. Here's how you adjust the default settings.px.gif

Read more...

If you're frequently working with text documents created on Windows, chances are you've encountered the Calibri and Cambria fonts, which became the default in Microsoft Office 2007. These fonts are TrueType typefaces, so if you have access to the original .ttf/.ttc files (perhaps through an Office license), you can easily use them on your favourite Linux distribution. However, a common issue with these fonts on Linux is poor rendering. Some characters might appear stronger than others, which can be quite distracting. This happens because Microsoft has embedded poor-quality bitmaps in their fonts. Fortunately, you can configure your system to ignore these embedded bitmaps. Here's how.px.gif

Read more...

A common way to compare financial systems across countries is by looking at the role banks play in providing credit to the real economy. The[Bank for International Settlements (BIS) has great data on credit across countries, making this kind of comparison very easy to do. Plotting the share of bank credit relative to total credit across time reveals some interesting patterns.px.gif

Read more...

Analysts typically look at bond yields as time series (tracking yield changes over time) or across different maturities (chaining interest rates on different contract lengths to form the yield curve for any given date). The St. Louis Fed's FRED database provides the relevant data on US Treasury Bonds and US Treasury Bills, making it easy to analyse bond returns in either of these ways. But sometimes you want to look at both dimensions together. In those situations, it can be useful to create a 3D graph. This post explains how to do this using R and plotly.px.gif

Read more...

The AsianBondsOnline portal of the ASEAN+3 Asian Bond Markets Initiative is a great resource for information on Asian bond markets. Whether it's market size, currency denomination, pricing information, or liquidity stats, this platform's got you covered. I often need a quick snapshot of the market, so I put together an R script to make life easier. This script fetches the latest data on local and foreign currency bonds from AsianBondsOnline, aggregates it for government and corporate bonds, and generates static and interactive graphs.px.gif

Read more...

I recently decided it was time to upgrade to the latest Ubuntu LTS (Long Term Support) release. The transition was straightforward, but setting up Fcitx, my preferred input method for Chinese and Japanese, wasn't quite as simple as I had hoped. Here's what I had to do to get it to work.px.gif

Read more...

I've recently been working a lot with R, a statistical programming language, and have built up a small collection of functions that I use regularly. One tool I've come to rely on is a function to obtain data from the United Nations' Comtrade database, an excellent resource for country-to-country trade statistics. Since there was no existing R package to access their new API (which is still in beta), I created my own function based on the sample code provided on their homepage and kept it in my personal files. I decided to package the code into an R package and share it here for others to use.px.gif

Read more...

If you have recently updated your Android device to the latest Android version 5 “Lollipop”, you may have noticed that the “Gallery” app has been replaced by Google's brand-new “Photos” app which ties in with Google Plus. For users who prefer to keep their gallery separate from Google's social network, there is a way to get back the familiar Gallery app without compiling it yourself: by pulling it from a CyanogenMod rom image. Here is how.px.gif

Read more...

After recently upgrading to Ubuntu 14.04 Trusty Tahr (LTS), I decided to give Fcitx, the default input method framework on Ubuntu's Chinese sister project Ubuntu Kylin, a try and I was pleasantly surprised. Not only is Fcitx rock-solid and actively developed, it also offers input methods for Japanese, Korean, Vietnamese and a bunch of other languages in addition to the default Chinese input methods. Here is how you get it to work on Ubuntu 14.04.px.gif

Read more...

I recently had to work on a Matlab assignment that required the use of fminbnd() to find local extrema. As I typically work in Octave rather than Matlab I ran into some problems getting my code to work within both programmes. As it turned out, Matlab and Octave handle the function slightly differently, so I thought I'd share my findings to save others some headache.px.gif

Read more...

Enter your email to subscribe to updates.