Home

SSL Certificate for idn.idn domain

I got a SSL certificate for an idn.idn domain recently. Here it is: https://你我.中国/ It might not sound like a big deal, but it actually is. It had not been possible for close to 10 years since the existense of idn.idn. IDN stands for “internationalized domain name”, basically it allow domain names to have non-ascii characters in them. idn.idn...

Read more

Build a PC for Deep Learning

Deep learning is hot, it is all over the news, hacker news, that is. After some research I am convinced deep learning was not just some fad, it is the real deal, I decided to build a new PC for deep learning. (But really, just an excuse I gave myself for replacing my perfectly fine 3 year old PC.) Here is the part list: name bra...

Read more

Using PositiveSSL on Haproxy

I wrote about using PositiveSSL with Nginx before. After 4 years, for Haproxy, the steps are pretty much the same, except the last one. From the issuing email, donwload the certificate file, unzip it, we got two files: example_com.crt and example_com.ca-bundle For Haproxy, we need to concatenate these two file with the private key file, but t...

Read more

Use ownCloud linux command line client

I use Linux, but rarely its desktop. I mostly just use command line. OwnCloud provides a command line program: owncloudcmd. Here are the steps to set it up and use it. First install the OwnCloud client. Go to: https://software.opensuse.org/download/package?project=isv:ownCloud:desktop&package=owncloud-client and select Linxu flavor and ...

Read more

How to download a really big file

I tried to download a really big file. It is an rar file, sized 2.5G, the uncompressed file is supposely 8G. Chorme on Windows fully downloaded file, but when I tried to uncompress it, I got “file is corrupted” error. So I turn to Linux, using wget, it also fully downloaded the file, during dowloading, there are reconnects: wget http://s...

Read more

Installing OpenJDK8 or Oracle jdk8

Needed to do a project in Java8, here’s how to install openjdk8: sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk sudo update-alternatives --config java # select openjdk8 sudo update-alternatives --config javac # select openjdk8 sudo apt-get purge maven maven2 maven3 ...

Read more

Installing Pypy3

Go to http://pypy.org/download.html and find the download link and wget/extract it. wget https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v5.2.0-alpha1-linux64.tar.bz2 tar xfj pypy3.3-v5.2.0-alpha1-linux64.tar.bz2 Preferably move it to /opt/ or /usr/local/: sudo mv pypy3.3-v5.2.0-alpha1-linux64 /opt/ Install pip and virtualen...

Read more

Upgrade MySQL to 5.7

First, go to https://dev.mysql.com/downloads/repo/apt/ and click “Download” button, on next page, copy the link that says “No thanks, just start my download.”, it should point to something like https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb Use the link to wget the file. then sudo dpkg -i mysql-apt-config_0.7.3-1_all.deb Selec...

Read more