2015年5月29日 星期五

MCA設定 內建TPTP(免下載,喔耶)

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd

放置檔案位子:
/private/tftpboot

2015年5月26日 星期二

在mac的VirtualBox上安裝debian8

看著朋友在使用mac

觸控板在那滑呀滑

想說都僚下去買iphone

回不去了

不過後來需要用到Debian

於是就開始了我的不歸路

mac上不能裝我最愛的vmplayer

於是就裝了oracle免費的virtualbox

經過奮戰用net install版本裝完Debian8.0

這裏可以下載

最好準備個40G

https://www.debian.org/CD/netinst/

(建議使用國網opensource.nchc.org.tw)

進系統後要安裝guest additions卻發現以下問題

















突然想起來好像不是這樣裝

是要自己去下載iso檔案

http://dlc-cdn.sun.com/virtualbox/4.3.28/VBoxGuestAdditions_4.3.28.iso

最後再參考http://virtualboxes.org/doc/installing-guest-additions-on-debian/

下面的動作都要做才能成功build出

這樣再重開機

就有從本機複製貼上到虛擬機器的雙向功能

也有共享資料夾!終於!

(搞死自己)

就像oreo混一混

Installing Guest Additions on Debian

Follow these steps to install the Guest Additions on your Debian virtual machine:
  1. Login as root;
  2. Update your APT database with apt-get update;
  3. Install the latest security updates with apt-get upgrade;
  4. Install required packages with apt-get install build-essential module-assistant;
  5. Configure your system for building kernel modules by running m-a prepare;
  6. Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom.
  7. Run sh /media/cdrom/VBoxLinuxAdditions.run, and follow the instructions on screen.

2015年5月25日 星期一

遇到visudo: command not found命令找不到怎麼辦!?


我使用的是Debian 8.0




答案是...

切換到root底下執行 :


apt-get update
然後


apt-get install sudo

然後visudo之後
找到user privilege
把自己的帳號加在root之後存檔就可以了

2015年5月10日 星期日

Benedict Cumberbatch and wife will raise their child in London after shunning bright lights of Hollywood班尼迪克的孩子即將誕生了!他們決定要在倫敦撫養孩子

雖然班尼迪克在美國長大,但他們夫妻決定要在倫敦扶養孩子長大唷!

真是一對幸福的夫妻~

期待可愛的小班(?)誕生

Where is Sherlock actor Benedict Cumberbatch putting down his roots?
這裡出現一句常用的片語 put down roots

Elementary, dear ­reader…it’s London.
Elementary,太容易回答了,親愛的讀者,是倫敦!(尖叫聲)

Benedict, 38, and theatre director Sophie, 37, are expecting their first child in the next few weeks.
他們的小孩在未來幾週就會出生囉!(跟我的朋友預產期差不多)

And despite the lure of big Hollywood roles after a string of Oscar nominations for box office hits like 12 Years a Slave and The Imitation Game, the dad-to-be is determined to bring up his ­offspring on Holmes territory.
雖然班尼迪克在好萊屋有著box office hits票房極佳的幾部電影
但是呢~這位準爸爸仍決心要讓他的offspring子子孫孫們生長在福爾摩斯的家鄉
Benedict, who hopes to win a TV Bafta on Sunday night for his role as the Victorian detective in BBC One’s Sherlock , said: “I am nesting for my family and just living a London life.”
他還說,正在找新家,要住在倫敦
And in The Remarkable Case of the Modest Superstar, Benedict added: “I want to live as much a normal life as I can.”
他更說:我希望可以過得像普通人一樣的生活
(我想這個短時間內不太可能…大明星到哪都有狗仔跟著,除非他有跟James Bond一樣非常厲害的喬裝的技能)

put down roots的意思?開始新生活的英文翻譯

Where is Sherlock actor Benedict Cumberbatch putting down his roots?

put down roots

› If you put down roots in a place where you have moved to live, you make new friends and join in new activities there so that you feel it is your home.


EX: We've put down roots here and don't want to move away.

中文的意思可以說是開始新生活,或是在甚麼地方立足

2015年5月5日 星期二

Backspace as ^H?!使用Terminal時退後刪除變成脫字符號H

正要使用鳥哥的範例寫Shell時發現...以下這段

read -p "Please input your first name: " firstname  # 提示使用者輸入

read -p "Please input your last name:  " lastname   # 提示使用者輸入

echo -e "\nYour full name is: $firstname $lastname" # 結果由螢幕輸出

執行時:

Please input your first name: 1234^H^H^H
Please input your last name:  1234
想要刪除打Backspace變成^H,菜鳥工程師我查了Wiki

^H[edit]

Pressing the backspace key on a computer terminal would generate the ASCII code 08, BS or Backspace, a control code which would delete the preceding character. That control code could also be accessed by pressing Control-H, as H is the eighth letter of the Latin alphabet. Terminals which did not have the backspace code mapped to the function of moving the cursor backwards and deleting the preceding character would display the symbols ^H (caret, H) when the backspace key was pressed. Even if a terminal did interpret backspace by deleting the preceding character, the system receiving the text might not. Then, the sender's screen would show a message without the supposedly deleted text, while that text, and the deletion codes, would be visible to the recipient. This sequence is still used humorously for epanorthosis by computer literates, denoting the deletion of a pretended blunder, much like a strikethrough.
Example:
Be nice to this fool^H^H^H^Hgentleman; he's visiting from corporate HQ.[4]
(Epanorthosis也是一個有意思的字,可以參考http://en.wikipedia.org/wiki/Epanorthosis)

發現了一個亮點,這個刪除的脫字符號原來可以拿來惡搞haha,把他當作strikethrough...
上面的例句,你看出笑點了嘛?

總而言之,改掉設定就可以正常打Backspace了
請看下圖,使用ASCII 127