emacs學習分步走

使用一段時間後,感覺實在不適應,決定採用分步走的戰略。先上下左右/home/end/page down/page up 不管什麼能用的都給用上,就是滑鼠也照樣上。畢竟能抓老鼠的都是好貓嘛。總結一下目前學會的命令吧:(也說說我的體會吧:這些命令記住容易,但是每次記住要用就不簡單了)在emacs中所有的命令都是以C M開頭的。c就是我們知道的ctrl,M就是我們的alt。移動游標的鍵:C-b 向後退一個字元(b即back)C-f 向前進一個字元(f即forward)C-a 移動到行的開頭C-e

輸出trace資訊

The program below demonstrates output the trace to three different place, it's a very cool feature in .net, very convenient and exactly what we desire of most of the time.1 eventlog2 console3 textfileusing System;using

傻傻得看兩個函數誰大,理解錯了一段文字,走了很多彎路,還好最後終於理解了。

#include "stdafx.h"#include <iostream>#include <math.h>using namespace std; double quicklog(__in double base, __in double value); int _tmain(int argc, _TCHAR* argv[]){     double n = 100000000;          cout<<pow(n,quicklog(3.0f/2,2

直接插入排序 direct insertion sort

#include "stdafx.h"#include <iostream>#include "stdio.h" void DirectInsertSort(int a[], int iLen);void PrintArray(int a[], int iLen); int _tmain(int argc, _TCHAR* argv[]){    // the first element of the array is reserved for use in the

NTLM演算法 不直接傳送密碼來實現的身分識別驗證。(challenge/response挑戰回複)

NTLM演算法,good idea。不直接傳送密碼來實現的身分識別驗證。(挑戰回複)http://msdn2.microsoft.com/en-us/library/aa378749.aspx相關關鍵詞:Kerberos  Negotiate 

Direct Selection Sort

#include "stdafx.h"#include <iostream> void DirectSelectSort(int* a, int iLen);void Swap(int* a, int index1, int index2);void PrintArray(int a[], int iLen); int _tmain(int argc, _TCHAR* argv[]){    int arrayToSort[] = {20, 7, 3, 4, 25, 15, 29,

七個習慣 終身受益

    第一、積極主動。強調主動意識和進取心,特彆強調要“發揮人類四項獨特的稟賦——自覺、良知、想像力和自主意志”,並得出結論:“高效能人士要作的最基本決定是選擇創造自己的生命”。我們每個人都有自己的處世態度,本來這是無可厚非的,但如果一個人立志要成為一個成功者,那他必須首先做到積極主動,這包括積極主動地面對問題;積極主動地處理問題;積極主動地承擔所有後果和責任。正如作者所說:“為自己過去、現在及未來的行為負責。”無論是做對還是做錯,成功者都毫不介意的承擔起自己所作行為的後果和責任。其實這對每個

Google earth上的奇異農田

1. 登入google文檔服務http://docs.google.com/2. 建立一篇文檔,然後選擇右邊的發布按鈕 3. 選擇“更改你的網站設定”來配置部落格的帳號 4. 選擇metaweblog api並填入url和帳號資訊 5. 回到“發布”標籤選擇“發布到部落格”按鈕把文章發布到部落格 6. 測試一下 這個辦法美中不足的地方是目前不能選擇發送到分類,希望google能儘早提供這個功能,不要讓這個功能成為一個雞肋。

安裝處理new operator無法擷取足夠記憶體時候的處理函數

在通常的情況下,調用new操作的時候,一般都不會去關心是否有足夠的記憶體使得這個操作可以成功。但是做為一個完美的程式,有必要去處理一下記憶體不夠的情況。在預設情況下,記憶體配置失敗會導致返回null或者拋出一個std::bad_alloc異常,所以需要在每次new的時候檢查傳回值是否為NULL或者在new上包裹一個try

cvs比較有用的命令

比較有用的命令是指,可能不常用,但是某個時刻你很需要的功能1. 如何刪除提交的一個或多個版本2. 如何修改提交的記錄檔3. 如何察看在本地處於修改狀態(還未提交)的檔案4. 如何察看某個提交(commit)裡麵包括了哪些檔案1. 刪除提交的一個或多個版本cvs admin -o range files...參數說明:range - 用來指定要刪除的版本範圍,如下所示:rev1:rev2   Between rev1 and rev2, including rev1 and rev2.rev1::

Numeric test, find the solution of non-polynomial equation, play

#include <iostream>#include <math.h> using namespace std; class Utility{public:    int static Left(int n)    {       return 8*n*n;    }     int static Right(int n)    {       return (int)64*n*log((double)n)/log(2.0);    }     void static

競爭與不確定性

    天上掉下一個巨大的餡餅    情況一,周圍只有一個人,沒有其他人    情況二,周圍只有2、3個人    情況三,數不清的人    對於情況一,基本可以確定,這個餡餅屬於唯一的那一個人。    對於情況二,稍微複雜點,幾種可能結果,我們還是可以根據高矮胖瘦、距離以及它們之間的關係大概的估計一下。   

[轉載]一生資料統計

  每天出生的嬰兒數量:1980  以年計算的平均壽命(2,475,576,000秒)

.net data providers

            System.Data.DataTable dt = System.Data.Common.DbProviderFactories.GetFactoryClasses();            for (int i = 0; i < dt.Rows.Count; i++)            {                Console.WriteLine("{0}\n{1}\n{2}\n{3}\n", dt.Rows[i][0],             

滑鼠移動的加速演算法(MOUSEEVENTF_MOVE)

Relative mouse motion is subject to the effects of the mouse speed and the two-mouse threshold values. A user sets these three values with the Pointer Speed slider of the Control Panel's Mouse Properties sheet. You can obtain and set these values

System.Data.SqlTypes Namespace

http://msdn2.microsoft.com/en-us/library/system.data.sqltypes.aspx System.Data.SqlTypes Namespace  The System.Data.SqlTypes namespace provides classes for native data types within SQL Server 2005. These classes provide a safer, faster alternative to

remove duplicate element in an array

demonstrates an O(n2) method to remove the duplicated elements in an array// caution: 1. don't try to return int[] array from a function, c++ doesn't support this, though c# does it well.//              2. when passing an array to a function, also

cvs的二進位檔案支援

cvs的二進位檔案識別能力比較弱,所以用cvs管理的項目在加入二進位檔案的時候要特別申明是二進位檔案,否則cvs不會正確處理,會造成資料混亂錯誤。可以用下面的兩個命令來實現二進位檔案的管理:1. 用kb選項把檔案加入為二進位檔案cvs add -kb mypack.rar2. 但是如果你忘記在cvs add的時候註明二進位也不要緊,可以使用下面兩步來讓cvs知道你這個檔案是二進位的:   2.1 cvs update -kb mypack.rar  2.2 cvs ci -f

簡單ADO.NET

        static void Main(string[] args)        {            using (SqlConnection connection = new SqlConnection(CSharpTest.Properties.Settings.Default.Database1ConnectionString))            {                SqlCommand sqlCommand = new SqlCommand();  

Attribute quick guide

copy from msdn, but make it much easier to find what you are looking for.The Attribute class associates predefined system information or user-defined custom information with a target element. A target element can be an assembly, class, constructor,

總頁數: 61357 1 .... 6588 6589 6590 6591 6592 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.