Author: Kirin Lin

  • Two python versions in system

    We have some python scripts for scheduled jobs. They are moved from a old machine and work very well automatically and manually. When we moved them to another machine, manually run them works fine. But they don’t work when we put them in corn.

    After some search, there are two python versions in system. One is in /usr/bin and another one is in /usr/local/bin. Hmmm… That’s $PATH problem!

    In bash shell, when we run the scripts manually, they are run by /usr/local/bin/python.

    In cron, they are run by /usr/bin/python. Unfortunately, this version is too old to be compatible with our scripts.

  • 廚子戲子痞子

    英文片名:Chu zi Xi zi Pi zi
    IMDb: Chu zi Xi zi Pi zi (2013)

    如果只是當個輕鬆有趣的小品來看,那就很不錯,別用太嚴肅的態度去對待這個作品,例如劇情道具剪接特效那一類的東西…尤其是二戰狙擊鏡完全不是那個現代樣啊~(還是說出來了…)

  • 已出售 TOYOTA

    2010 年的時候把 2003 年 TOYOTA VIOS 1.5G 牽去換一台 2000 年 TOYOTA CAMRY LE 2200 c.c. Green,後來搬離開南港租屋江子翠,又在捷運旁買了一間老公寓。之後上下班都靠著板南線,桃園以南大多搭高鐵,使用車子的機會不多。

    去年就想著要把車子處理掉,平常停在台北市區,臨時用車大多是走個幾分鐘去跟老爹借他的車子來開。沒想到時間很快就過去,車子半年要驗一次保養一下。

    上禮拜打了電話給之前牽這台的車行,老闆看車況還 OK 就收回去,搞定。

    現在是無車族,算了算上個月搭小黃的花費也不過一千多,還是先不養車好。

  • Install Eclipse on Ubuntu

    Eclipse Kepler (4.3) is released on June 16, 2013. I want to try it on my Ubuntu 12.04 LTS. Follow these steps for the installation:

    1. Download Eclipse from eclipse.org
    2. Extract the eclipse-xxx-xxx-xxx-linux-gtk-x86_64.tar.gz using
      tar -zxvf eclipse-xxx-xxx-xxx-linux-gtk-x86_64.tar.gz
      
    3. Switch to root
      sudo -i
      
    4. Copy extracted folder to /opt and rename to eclipse_kepler
      cp -r eclipse /opt/eclipse_kepler
      
    5. Create a desktop file and install it.
      gedit eclipse_kepler.desktop
      

      The content of eclipse_kepler.desktop:

      [Desktop Entry]
      Name=Eclipse 
      Type=Application
      Exec=/opt/eclipse_kepler/eclipse
      Terminal=false
      Icon=/opt/eclipse_kepler/icon.xpm
      Comment=Integrated Development Environment
      NoDisplay=false
      Categories=Development;IDE
      Name[en]=Eclipse Kepler
      

      Execute the following command to install it in the unity:

      desktop-file-install eclipse_kepler.desktop
    6. Create a symlink in /usr/local/bin using
      cd /usr/local/bin
      ln -s /opt/eclipse_kepler/eclipse
      
    7. Integrate the Eclipse menu in Unity top panel using
      cd /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies && sudo sed -i 's/Eclipse/Xclipse/' libappmenu.so
      
    8. Launch Eclipse
      /opt/eclipse_kepler/eclipse -clean &
      
    9. Lock Eclipse to the launcher bar by clicking right button on Lock to Launcher

    Reference:

  • A Good Day to Die Hard

    中文片名:終極警探:跨國救援
    IMDb: A Good Day to Die Hard (2013)

    動作片應該要接音響來看的啊~XD 片尾的一小段好像被剪掉了?
    這系列可以繼續拍下去真好,McClane 家族繼續拯救世界吧!

    我喜歡這句一直出現的台詞:John McClane: I’m just on vacation.