How to access current logged in user information outside of Drupal
If you are writing PHP code in Drupal and would like to access basic user information (e.g. UID, username), you can simply define the global variable $user and get the data from there: However, it…
How to fix OneDrive crashes and manually reset its index
I am using OneDrive to store all my photos, documents, some portable software, PowerShell scripts, and many other things. I was quite happy with it (especially the Smart File features where I can see…
Rethink database design with Microsoft Azure
I am definitely not a database expert, so what I am writing here is only from my experience migrating all my applications to Microsoft Azure. If you think that I am doing something wrong or you know…
Steps to install WordPress on Azure Virtual Machine running Ubuntu
I have moved my blog to Azure Website for a while and I am quite happy with it. However, recently I have decided to move my blog to an Azure VM running Ubuntu. I have to say Azure Website is very…
Some mid-night thought from the TechEd keynote
It is almost morning, but TechEd is so much exciting, so I cannot go to bed yet. Besides that, Visual Studio Update 2 is also installing so I cannot write codes either. So I will jot down all the…
Android 4.4 vs. Windows 8.1 from a developer perspective
I am a long time supporter of Microsoft and Windows. I have been using Windows, Windows Mobile and Windows Phone for many years, and I just purchase my first Android device, the 2013 Nexus 7, couple…
SailAlign and the error "ReadString: String too long"
If you have used SailAlign (or HTK) to do forced alignment on a large corpus, you may already encounter the error: ReadString: String too long. This error is actually thrown out from HTK, and a quick…
How to create full-context labels for your HTS system (update: not really worked)
Update : I later found out that the method described below did not work as expected. Tricking Festival by simply providing it with a custom monophone transcript will generates invalid .utt files.…
How to configure HTS for in-training synthesis with state-level alignment labels
Purpose Utilizing state-level alignment labels allows us to copy the prosody from one speaker and use it on another speaker’s acoustic model. This can be used to improve the synthesized results by…
How to configure HTS demo with STRAIGHT features for 16kHz training data
I have been using HTS for a while for my research on speech synthesis. Recently, I have had some problems when I tried to configure the HTS demo with STRAIGHT features to use 16k data instead of 48k.…