Time of Update: 2018-12-05
TCP IP共分為四層 分別是:應用程式層對應OSI的應用程式層、展示層、會話層傳輸層對應OSI的傳輸層網際層對應OSI的網路層網路介面層對應OSI的資料連結層以及物理層 TCP/IP 全程為translation control protocol /International protocol包括傳輸控制層與網路應用程式層,是一個協議簇傳輸層分為以下兩類1 TCP
Time of Update: 2018-12-05
主要分為以下步驟:1、下載JDK1.6,1.5也是可以的,這裡選擇1.6作為例子:1.6:http://www.oracle.com/technetwork/java/javase/downloads/index.html2、下載ANT,這裡選擇的1.8,最新版本已是1.9了。地址:http://ant.apache.org/bindownload.cgi3、使用svn下載TOMCAT7.0源碼。命令:svn --force export http://svn.apache.org/repos/
Time of Update: 2018-12-05
int WideCharToMultiByte( UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar);cchWideChar[in] Size, in WCHAR values, of the string
Time of Update: 2018-12-05
首先我們來描敘下我們出現的問題:當我們用軟鍵盤在一個對話方塊裡輸入字母后,然後我們想切換下輸入方法(例如切換到輸入數字),我們就會發現我們開始輸入的字母內容不見了,當我們再切換回來輸入數字時候我們又會發現我們剛才輸入的數字不見,同時又出現了剛才被刪除的字母。 首先我們找到軟鍵盤的處理函數並理解分析:public void onKey(int primaryCode, int[] keyCodes) {if (isWordSeparator(primaryCode)) {
Time of Update: 2018-12-05
機器是4core, 單cpu,檔案大小 15GiB,分成 N 個線程共隨機讀取一萬次,SUSE10, Linux 2.6.16 核心初始機器負載基本為空白,線程個數與耗時的關係如下:線程個數 耗時0 31.3s1 31.3s2 25.5s4 20.2s8 16.5s12 15.0s16 14.2s24 13.3s32 12.6s64 12.5s128 13.
Time of Update: 2018-12-05
1.問題描述:在4.1的系統下,調試機器是768*1024的預設: 在launcher
Time of Update: 2018-12-05
原文出版:http://www.darkbull.net/
Time of Update: 2018-12-05
Time of Update: 2018-12-05
以前寫過一篇用python封裝IOCP的文章,這幾天因朋友需要,再一次封裝了iocp介面。這一次我並不是簡單的把原有代碼拿過來簡單的修修改改,基本上是推到重來。改正第一次封裝時的許多缺點,同時修正了許多bug,再回首看以前的代碼,感覺自己在進步。這次封裝iocp,收穫了以下幾點知識:1.
Time of Update: 2018-12-05
ALLUSERSPROFILE=C:\\ProgramDataAPPDATA=C:\\Users\\使用者名稱\\AppData\\RoamingCommonProgramFiles=C:\\Program Files\\Common FilesCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common FilesCommonProgramW6432=C:\\Program Files\\Common
Time of Update: 2018-12-05
VC++編寫DLL,在Word
Time of Update: 2018-12-05
以前學習一些的第三方庫, 都要寫無數的main的函數, 來學習一些內容. 簡單搭一個小架構來用.主源檔案:#include "tmain.hpp"#include "tfun.hpp"log4cplus::Logger g_logger = log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("POCO_SAMPLE"));int main(int argc, char *argv[], char *env[]){//
Time of Update: 2018-12-05
要啟動並執行程式碼:int main(void){double counter;double result;double temp;for (counter = 0; counter < 2000.0 * 2000.0 * 2000.0 /20.0 + 2200; counter += (5-1)/4){temp = counter / 1979;result = counter;}printf("Result is %lf\\n", result);return
Time of Update: 2018-12-05
#include <iostream>class A{public:A(){this->i = 1;}int get() const{return this->i;};void set(int i){this->i = i;};private:int i;};int main(){// 指標常量, 必須在聲明時進行初始化。A *const p = new A;std::cout << p->get() <<
Time of Update: 2018-12-05
64bit Windows:1. First we go to the branch HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Compuware\DLM and delete all the keys starting with C10-*******2. Then in the folder C:\Users\Public\. Compuware delete all files with the extension type. _v1b
Time of Update: 2018-12-05
#include "../tmain.hpp"void test_UUID(){Poco::UUIDGenerator& gen = Poco::UUIDGenerator::defaultGenerator();std::set<Poco::UUID> uuids;for (int i = 0; i < 10; ++i){// Poco::UUID uid = gen.create();Poco::UUID uid =
Time of Update: 2018-12-05
Tomcat5.5預設安裝時,並沒有提供 Administration Web Application,需要另外下載安裝,到這裡下載:http://tomcat.apache.org/download-55.cgi ,在下載頁面的Binary Distributions欄下的第四大項,Administration Web Application ,下載後解壓,然後把apache-tomcat-5.5.20\conf\Catalina\localhost\admin.xml拷貝到 Tomcat 5
Time of Update: 2018-12-05
方法1:VC6---選項Project | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions添加_CRT_SECURE_NO_DEPRECATE和_SCL_SECURE_NO_DEPRECATE兩個宏VS2005 項目屬性 --> C/C++ --> 前置處理器 -->
Time of Update: 2018-12-05
unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls, ComCtrls;typeTForm1 = class(TForm)Button1: TButton;Edit1: TEdit;Edit2: TEdit;procedure Button1Click(Sender: TObject);private{
Time of Update: 2018-12-05
void test_mt19937(){// 以時間為種子建立一個隨機數發生器boost::mt19937 rng(time(0));for (int i = 0; i < 100; ++i){std::cout << rng() << std::endl;}}void test_rand48(){boost::rand48 rng;for (int i = 0; i < 10; ++i){std::cout << rng() * 1.0 /