Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Convert a Socks Proxy to a HTTP Proxy

There are multiple tools available to convert a Socks proxy to a HTTP/HTTPS proxy. The work by convertting HTTP requests into socks requests and send them to the socks proxy. Be aware that this might not be necessary as many tools accepting HTTP/HTTPS proxies also accept socks proxies …

Quickly Create a Scala Project Using Gradle in Intellij IDEA

Easy Way

  1. Create a directory (e.g., demo_proj) for your project.

  2. Run gradle init --type scala-library in terminal in the above directory.

  3. Import the directory as a Gradle project in IntelliJ IDEA. Alternatively, you can add apply plugin: 'idea' into build.gradle and then run the command ./gradlew openIdea to …

Install Newer Version of SQLite3 on Debian Jessie

  1. Open /etc/apt/sources.list and add the following line to the end.

    deb http://www.backports.org/debian jessie-backports main contrib non-free
    

    or

    deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
    deb-src http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
    
  2. Make sure the GPG …

Mount NTFS Drive Manually on Mac

  1. First use diskutil list to list all avaiable disks and identifiy the external hard drive to mount. For example, running diskutil list on my Mac gives me the following output and /dev/disk2s1 is the partition (NTFS) to mount.

    $ diskutil list
    /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme …

Make Windows Restart Regularly

My Windows PC in my office slows down signficantly after running for several days. I have cleaned up the startup applications to the most I can. The only way I can think of is to automatically restart the computer early morning every few days. The article [Windows10] How to set …