發表文章

Source Insight 入门使用

圖片
  一、建立工程       ① 打开 Source Insight,并选择Project 菜单-> New Project       ② 在出现对话框中选择并选择存放工程文件的文件夹,输入工程名                ③ 在 Configuration 部分选择这个工程使用全局配置文件还是自己单独的配置文件                ④ 选择文件添加到Project中,通过左边的树状图找到你想添加的文件,点击Add就可以了                ⑤ 点击 close后,工程就建立完成了      (注: 如果上个项目刚关闭,刚出来的时候可能没有东西显示,这个时候可以通过Project->Synchronize Files 同步一下文件)         二、Source Insight 的查询功能 1. 查找定义       ① 在编辑区内,选中任意一个变量、函数、宏等,点击右键->Jump Definitions              (注:如果只有一个定义,编辑区就会自动转到这个变量、函数、宏定义处;如果有多个定义,将会出现一个定义列表,选择不同的表项,编辑区就会转到相应的定义处)                       ② 在编辑区中,选中这个变量、函数、宏等,Context Windows 会自动显示这个变量            2. 查找       ① 在编辑区内,选中要查找的变量、函数、宏等,点击右键-> Lookup Reference        (注:         Options选项:                    Case Sensitive: 查找时区分大小写                    Skip Inactive: 诸如 #if…#endif 内的代码,因为是Inactive的,所以不查找                    Skip Comments: 注释内的代码不在查找之列                    Search Only Comments: 只查找注释内的代码         )                  当 Search Method 选中 Simple String时,还可以选中或者取消 Whole Words Only选项。

計算 標準體重

 超重計算公式 超重%={(實際體重-理想體重)/(理想體重)}×100% 超重百分比 代表意義 大於+20% 肥胖 20%~10% 體重過重 +10%~-10% 正常 -10%~-20% 體重過輕 小於-20% 瘦弱 根據統計,約百分之四十二的人覺得自己過胖,需要減肥。在從事真正的減肥計劃前,最好先有理想體重的概念,如果要求自己太多,往往造成影響心理層面的不良效果。 依據不同身體質量指數,我們可以看出自己的體重是否合乎理想: 女性理想體重 男性理想體重 身高 小體型 中體型 大體型 身高 小體型 中體型 大體型 147.5 43 46 50.5 157.5 52.5 56 60 150 44 47 52 160 54 57.5 61.5 152.5 45.5 48.5 53 162.5 55 59 63.5 155 47 50 54.5 165 57 60 65 157.5 48 51 56 167.5 58 61.5 67 160 49.5 52.5 57 170 59.5 63.5 68.5 162.5 51 54 58.5 172.5 61.5 66 70.5 165 52.5 56 60 175 63.5 67.5 72.5 167.5 52.5 56 60 177.5 66 69 74 170 55 59.5 64 180 67.5 71 76.5 172.5 57 61 66 182.5 69 73 79 175 59 63 67.5 185 71 75 80.5 177.5 61 65 70 187.5 73 77.5 83

[英文]常用

  8. 從明天開始,我要請假三天。 Starting tomorrow, I'm taking three days off. 31.我下午請假。 I'm off this afternoon. 55.你下星期五可以幫我代班嗎?我有點私事要處理。 Can you take my shift next Friday?   I have some personal affairs to take care of. 其他的例句: 1. 我在公家機關上班。  I work at a government office. 2. 你一個月薪水多少?  How much is your monthly salary? 3. 貨已經寄出去了。  The merchandise has already been shipped out. 4. 我想跟你確認,你們的貨要走哪一家貨運公司? I would like to confirm with you which shipping company you will use  to ship your products. 5. 我要延期出貨。 I want to postpone releasing the merchandise. 6. 請等一下,我幫您把電話轉給相關單位。 Please hold for a moment. I'll transfer you to the proper department. 7. 今天有個緊急會議,記得準時到。 There is an emergency meeting today, so please be prompt. 9. 請幫我把所有的文件各印兩份。 Please help me by making two copies of each of the documents. 10.我要辭職。 I'm going to quit my job. 11.我的名片用完了。 I'm out of business cards. 12.他已經下班了。 He already got off work. 13.這星期我輪夜班。 It's my turn to work the night shift this week. 14.下禮拜是我們的員工旅遊。

[英文]請假用語

  先列出各假別名稱的說法: 中文 英文 病假 injury /sick leave 事假 personal leave 婚假 marital leave / marriage Leave 喪假 funeral leave / bereavement leave 產假 maternity leave / maternity leave for female employees 陪產假 paternity leave / maternity leave for male employees 公假 official leave 休假 day off 特休 annual leave / paid vacation 公傷假 occpational sickness leave 彈性休假 following the guidelines of optional leave 生理假 menstruation leave 與請假有關的的句子: 中文 英文 休假一天 take a day off 打電話請病假 call in sick 沒有請假就缺席 absent without leave 家裡的一些事 family matters / family affairs 請假 take a leave / ask for leave 明天我想請一天/半天假 I wonder if I can take a day / half day off tomorrow. 我明天將請假一天 I’ll take a day off tomorrow. 我明天將放假 I’ll be off tomorrow. 他已經被准假 He has got leave of absence. 請四個月的假 take four months’ leave 填寫假單 fill out a leave request (form) 書寫通用範本: Dear  [對方的名字] , I am requesting a  [How many day]  day leave of absence from  [Date] .  This is because  [Reason] . I will be back on  [Date] . If you need any further information, please

OpenSuSe/SUSE 開機啟動檔

  OS: SLES 11.3 x64 1.  boot.local – 這個開機啟動檔案會在 rc5.d 前就有動作 2. halt.local – 這個關機啟動檔案會在最後有動作 3. before.local – 這個檔案比較用不到所以不需多做解釋 4. after.local – 這個檔案會在 rc5.d 之後有動作,就是最重要的開機啟動檔,要設定路由或 copy 檔案等都在這裡 [Paul, 12/06/2013] If you want to test reboot.sh, please put the file into boot.local. 那就是 /etc/init.d 下的幾個檔案

CetOS 6.5 XRDP

圖片
1. Set proxy              system -> Preferences -> Network Proxy -> Proxy Configuration                                               2. Enable SSH for " root " Account.            SSH 服務的設定檔   /etc/ssh/sshd_config 1 2 3 4 5 [root@localhost ~] # vi /etc/ssh/sshd_config PasswordAuthentication yes  PermitRootLogin yes [root@localhost ~] # service sshd restart Stopping sshd:                                             [  OK  ] Starting sshd:                                             [  OK  ] [root@localhost ~] # 3. yum update 4.  CentOS 6.5 + XRDP 0.6.1 遠端桌面安裝與設定

RHEL 6.0 如何進入 Single User Mode?

圖片
  通常會需要進入 Single User Mode 有幾種情形: 1.忘記 root 密碼,前任管理員離職時,沒有交接 root 密碼 2.root密碼正確,但是無法登入,可能是 SELinux 或是 PAM 造成 3.備份或是還原 以下步驟是在 RHEL 6.0 Server 64位元,KVM環境下: 1. 2. 3. 4. 5. 6. 7. 8. 文章出處: https://andersonwang.wordpress.com/2011/06/27/rhel-6-0-%E5%A6%82%E4%BD%95%E9%80%B2%E5%85%A5-single-user-mode%EF%BC%9F/