Other articles


  1. Install x11vnc on deepin Linux

    First of all, the deepin distribution of Linux is very pretty! I like the color scheme, icon design, control panel design, etc. Since the main feature of deepin is desktop design, I really want to use its desktop from my remote machines if bandwidth is fine.

    I used to access ...

    read more
  2. mutt is a good email command!

    Mutt!

    I have some thing stored on my office computer, but it is not simple to access from outside. The only way is using jump machine by ssh. If I want to get some files out, I must send it to jump machine and then fetch it.

    If the file ...

    read more
  3. Install MySQLdb in virtualenv on Ubuntu

    I have install the python-mysqldb on my Ubuntu server, but a missing dependency message alerted when I run a program in virtualenv.

    Then I do as this post and solved my problem:

    $ sudo apt-get build-dep python-mysqldb
    $ source venv/bin/activate
    (venv)$ pip install MySQL-python
    

    then everything works fine.

    read more
  4. Modify timezone and datetime on Ubuntu

    Some configurations commands for Ubuntu server:

    $ tzselect
    
    # Since I'm in China, I select the Asia -> China -> Beijing Time
    # The TZ='Asia/Shanghai'
    
    # Update the localtime profile
    $ sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
    
    # Update datetime by time center
    $ sudo ntpdate asia.pool.ntp.org
    
    # Update the hardware ...
    read more
  5. Install Jupyter Environment

    In order to start my own work on data analysis into EDM, I need a development environment of Python Notebook. The process is quite simple:

    Install the virtualenv and related packages:

    $ sudo apt-get install python-virtualenv python-pip python-tk
    

    Create a virtual environment for project:

    $ cd ~/workspace
    $ virtualenv edm
    $ source edm/bin ...
    read more
  6. Simple Jupyter Python Scripts

    Basic imports

    Import these packages:

    import numpy as np
    import matplotlib.pyplot as plt
    

    Enable the inline display of graphs

    %pylab inline
    

    Shortcuts

    Jupyter Notebook has two different keyboard input modes, which are similar to VIM. I prefer this!

    read more
  7. Reverse Proxy by Apache

    I use Apache to proxy service located in private network. But it's not easy to map all services which listened to different ports. If a service use absolute path in it's web page, it is more diffcult.

    Luckily, I found a simple solution by a modle called proxy_html ...

    read more

Page 1 / 2 »

blogroll

social