Monday, January 23, 2017

Install KakaoTalk on Ubuntu 16 LTS

Run next command.
sudo apt-get install wine playonlinux fonts-nanum*
Run playonlinux and click Install menu.
Select "Install a non-listed program"

Keep clicking Next button.
Select "Install a program in a new virtual drive" and click next button.

Type name of virtual drive anything.

Check option like next screenshot.
Select option "32 bits windows application".
Check next libraries.
  • POL_Install_gdiplus
  • POL_Install_gecko (For korean font)
  • POL_install_riched30 (For korean font)
  • POL_install_wmp10 (For alert)
  • POL_install_wmpcodecs (For alert)
Then keep going click next button.
Don't check "Run kakaotalk".
In last, you can create shortcut for kakaotalk application.

Saturday, January 21, 2017

Google Storage By Java


If you were deleted all files in folder then folder also deleted.
final Storage storage = StorageOptions.getDefaultInstance().getService();
boolean succeed = storage.delete(BlobId.of("bucket-name", "1/lenna.jpg"));
if (succeed) {
  // File was deleted.
}
else {
  // File not found!
}

ref. https://cloud.google.com/appengine/docs/flexible/java/using-cloud-storage

Google Cloud Authorization

Environment: OS X El Capitan

Use default credential or google cloud authorization.

Install google-cloud-sdk.
brew cask install google-cloud-sdk

Authorize google cloud.
gcloud auth application-default login

ref. https://developers.google.com/identity/protocols/application-default-credentials