2015/09/10

Python Chinese String Index Usage 中文字串

我在《Python String List Chinese Encode Decode 中文編碼解碼》一文介紹了 Python 中文 String 和 List 的編碼和解碼方法。

在本文裏,我們利用以下兩種方式使用 [] 指定索引來取得字串中的某個字元:
  • 直接印出宣告 Unicode 的特定字串
  • 使用 unicode 的 .encode 函數以 UTF-8 編碼 String 印出

但要特別注意 Python2 和 Python3 在 Unicode 上的重要差別:
在Python3因為字串已經全部統一成 unicode ,所以不必加上 u ,這是Python2和Python3的重要差別之一,需要特別注意

網路芳鄰無法讀取 My Network Places Neighborhood Not Read SAMBA On Win7

安裝Win7後,我遇到的最大問題其實是沒有辦法使用「網路芳鄰」(Network Places /Network Neighborhood)讀取其他機器分享的 SAMBA 資料夾(包括Samba),後來我終於 Google 找到原因和解法。

2015/09/07

Fix OSX DHCP Basicipv6ValidationError

我在 OSX 的網路設定界面手動修改 IP 後,只要我一儲存設定就會出現 Basicipv6ValidationError,所以我只能選擇還原以前的設定。

Google 後,我才知道 OSX 系統預設 IPV6 是開啟的,而且在「網路」的「進階選項」內也沒有關閉 IPV6 的選項,但這個可以進入「終端機」(Terminal) 關閉 IPV6。

2015/09/01

Install And Configure PXE Server On Ubuntu 14.04

My PXE server is building in VirtualBox. The details are given below:
  • OS: Ubuntu 14.04 LTS server.
  • VirtualBox Network Interface 1: Bridge mode; mapping to Ubuntu Eth0
  • VirtualBox Network Interface 2: Internal mode, Set Name as "MAAS"; mapping to Ubuntu Eth1
  • IP Address: 192.168.1.1
  • DHCP: isc-dhcp-server (The detailed settings please refer to here)
  • TFTP: xinetd (The detailed settings please refer to here)

The detailed installation and configuration of PXE Server on Ubuntu by below steps.