5/27/2017

How to set up Windows sound loopback

Install  VB-audio virtual cable

When recording background music:
Sound | Playback | Set Cable Input as Default

Sound | Recording | Microphone Array | Properties | Listen to Cable Input

Sound | Recording | Cable Output | Properties | Listen to Headphone

In the recording app, set the mic to Cable Output as the input source.

This way the Cable Output will include both the background music from the computer and the sound from the microphone.

5/26/2017

Eclipse Java autoformatter line wrapping settings


Uncheck Prefer wrapping outer expressions(...)

5/11/2017

C++: Please very special attention to map element deletion when iterating it

The normal way doesn't work. You need to use this way:
for (auto it = m.cbegin(); it != m.cend() /* not hoisted */; /* no increment */)
{
  if (must_delete)
  {
    m.erase(it++);    // or "it = m.erase(it)" since C++11
  }
  else
  {
    ++it;
  }
}

5/10/2017

C++ code should depend on tcmalloc

It can improve the performance by 30%

4/25/2017

Windows Media Player is faster than mplayer when playing GoPro 4 videos

I really like the shortcuts of mplayer, but Windows Media Player is faster.
Need to install http://wmpkeys.sourceforge.net/ for Windows Media Player.

4/07/2017

VirtualBox guest os ubuntu font pixelated

After installing Ubuntu (guest) on Windows 10 (host), I fond the system UI interface font is pixelated. The host machine is Macbook Pro with Retina display.

To fix it:
In Ubuntu (guest)
Settings | General | User Interface Scaling, change it to Double DPI.
Then make sure the Virtual Box view scaling is 100%