2025年5月5日 星期一

2017年11月6日 星期一

Linux Debian 8 installation note


  1. change password : passwd root
  2. change port of ssh 
    1. vi /etc/ssh/sshd_config
    2. Port 
    3. /etc/init.d/ssh restart
  3. apt-get update, apt-get upgrade
  4. htop : apt-get install htop
  5. iftop : apt-get install iftop
  6. tmux : apt-get install tmux
    1. vi ~/.tmux.conf
    2. https://goo.gl/yrloua
    3. set -g default-terminal "screen-256color"
    4. aliase tmux = 'tmux -2'
  7. vim : 
    1. vim ~/.vimrc
    2. set nocompatible
    3. set backspace=2
  8. Apache2
    1. apt-get -y install apache2
    2. remove default index.html under /var/www/html
    3. restart : /etc/init.d/apache2 restart
    4. show enabled site :  apache2ctl -S
    5. enable site : a2ensite
    6. disable site : a2dissite
    7. reload : /etc/init.d/apache2 reload
  9. PHP5 
    1. apt-get -y install php5 libapache2-mod-php5
    2. MySQL MariaDB support : apt-get -y install php5-mysqlnd php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
  10. Wordpress
    1. http://idroot.net/linux/install-wordpress-debian-8/
  11. Rsync : apt-get -y install rsync
  12. Rclone : https://rclone.org/install/
    1. for google drive

2017年10月26日 星期四

Memory for CPU


  • 我的CPU使用歷程
  1. Intel 486DX 33
    1. 第一台電腦 
  2. Intel 486DX2 66
    1. 第一台電腦升級CPU
  3. Intel Pentium 166
    1. 第二台電腦,聯強套裝
  4. AMD K6 200
  5. AMD K6 2 266 oc 300
    1. SOYO 5EHM
  6. AMD Duron 600 oc 900
    1. 第一台組裝電腦
    2. A7V A7V133
  7. AMD Athlon XP 1800+ ver a
    1. 不太能超,短時間使用
  8. AMD Athlon XP 1800+ ver b @ 1533 oc 2200
    1. B板很能超,不過實際超到多少有點忘了
    2. 配上陞技的NF7S再用,同時也有配過水冷
  9. AMD K8 3000
    1. 降價跟便宜的MSI板子一起買,但是驅動容易跳掉,原因不明,短期使用賣掉
  10. Intel Core2 duo 6300 oc 3g to 2014
    1. 因為有便宜的865 AGP的板子可以用,所以買的,應該是目前最貴用最久超最多的CPU,最終有換上P35的板子再用

2010年11月22日 星期一

2010年11月12日 星期五

Flex XML 心得

  • XML 內容的物件(Object) 與 XML物件(XML) 間使用的差別
  • 注意XML 物件起始位置的問題 , root 為物件本身!
  • XML 內容的物件(Object) 物件起始位置不然 root本身!
  • XML物件轉型必須用parseInt...之類的,不可是用Object常用的as Int
  • 注意一下免的鬼檔牆到死

2010年11月5日 星期五

Flex Custom Component How to

有兩種建立自定元件的方向
  1. 延伸現有元件 - 繼承某個元件,但不修改本身的原有的功能
    組合,新增某些功能
  2. 修改現有元件-  繼承某個元件,但修改本身的原有的功能
    修改,強化某些功能

2010年9月3日 星期五

Flex development - no server app change to j2ee app - RemoteObject faultDetail=null

If you created a flex app with no server technology and you want to change that to j2ee app.
or your RemoteObject always fault and faultDetail=null

  •  Try to modify your flex compiler arguments .

            Add -services "somewhere on your computer/WEB-INF/flex/services-config.xml"

  •  Find .flexProperties file and add 

            serverContextRoot="/????"
            serverRoot="????"
           serverRootURL="http://????"
           ???? depend on your j2ee server settings