Get Call Stack

In C#:This example shows how to get call stack in .NET. Call stack is represented by StackTrace class and a method call is represented by StackFrame class. You can get the frames using StackTrace.GetFrames method. It returns array of frames. Frame

使用CryptoApi做PKCS#1格式加密

#include "stdafx.h"#include <windows.h>#include <Wincrypt.h>#pragma comment(lib, "crypt32.lib")int _tmain(int argc, _TCHAR* argv[]){HCERTSTORE hStore = CertOpenSystemStore(NULL, L"MY");PCCERT_CONTEXT pCert = NULL;DWORD dwKeySpec =

UBuntu11.04 server編譯安裝GCC4.6.1

 安裝需要的一些庫sudo apt-get install build-essential sudo apt-get install zlibc sudo apt-get install zlib1g-dev sudo apt-get install m4 sudo apt-get install

icinga 添加http service

緊接上文,現在監控了10.112.18.131 host,但是沒有任何public service被監控。該機上已經安裝了nginx,監聽80連接埠,提供了靜態檔案伺服器。第一步:確保nginx提供了根目錄的訪問 location / { root /opt; index index.html; }手動通過瀏覽器測試一下:http://10.1

安裝IDOUtils addon

IDOUtils是icinga的一個addon,用來將資料儲存到資料庫中,本文我嘗試著採用mysql server,並且mysql server採用另一台機器上已經安裝好的。icinga的sever之前已經安裝好了。1. 先安裝訪問mysql需要的程式apt-get install mysql-client libdbi1 libdbi-dev libdbd-mysql2. 登入mysql server,用下面的命令建立使用者'icinga'和密碼:mysql> GRANT ALL

在icinga上安裝check_mk

安裝前的準備:1. 我現在已經安裝了icinga,並且使用了mysql. check_mk要求事先安裝了全功能的nagios, 似乎我的已經算是全功能了。現在運行icinga也正常。2. 檢查external command是否正常。開啟網頁,登入後勾選localhost的ping服務, 然後點擊右上的下拉框:點擊Submit按鈕後,接著做一些後續操作。然後回到頁面發現Ping服務被禁止了。所以external command工作正常。3. 檢查python, UBuntu

check_mk 分頁錯誤處理方法

前文已經太長,當時出現了兩個錯誤,經過搜尋,發現是apache2的問題,內部預設使用了apaceh2-mpm-worker,check_mk的網站應該在多執行緒上有些問題,因此老出錯。在Ubuntu下解決這個問題很簡單,就是安裝apache2-mpm-prefork,這是每個請求獨立用一個進程的方式。root@icinga:/etc/check_mk# apt-get install apache2-mpm-prefork Reading package lists...

check_mk 整合 icinga後所有host為down

service狀態都狀態,host為down。仔細看了日誌:第一idodb服務沒有啟動:service ido2db start service icinga restartservice apache2 restart訪問網站,host還是down.再檢查日誌:[1368754991] error executing command '/usr/lib/nagios/plugins/check_icmp': No such file or directory. Make sure that

UTF-8解碼

要想瞭解UTF-8編碼規則,請參考我的文章:http://blog.csdn.net/sheismylife/article/details/8570015在我的另一篇文章"UTF-8編碼實測" http://blog.csdn.net/sheismylife/article/details/8571726 中,我使用了boost::locale庫的代碼來解碼UTF-8. 現在來仔細研究一下解碼的演算法:如何分辨leading byte和continuation

icinga和check_mk使用者管理

check_mk使用者管理參考文檔:http://mathias-kettner.com/checkmk_multisite_auth.html但是請注意,文檔中沒有提到icinga,一直都在假定使用者是nagiosadmin所以必須要在apache2的密碼檔案中再建立一個使用者nagiosadmin用命令:htpasswd /usr/local/icinga/etc/htpasswd.users

Protocol Buffer 一 安裝

下載編譯器的原始碼:http://code.google.com/p/protobuf/downloads/list 閱讀README(C++/Java/Python)LInux下的C++安裝方式:  $ ./configure  $ make  $ make check  $ make installLinux下的Java安裝方式1.首先執行C++安裝方式2.建議使用Nexus作為私服需要修改pom.xml檔案,加上<distributionManagement>

Thunderbird + DavMail workstation 代替 Outlook訪問Exchange

接上篇文章,我很快在我的Ubuntu11.10 x86 Desktop上做了第一個嘗試。一 下載DavMail workstation的安裝包http://davmail.sourceforge.net/download.html我是x86版本,注意需要將Unity替換成Gnome介面。這點不太爽,因此後面一篇文章我會介紹如何用DavMail server版本。二

icinga安裝PNP4Nagios

這個addon可視化的展現了監控資料,非常有用。check_mk的表格中也連結了該頁面。現在看看怎麼安裝?官方網站:http://docs.pnp4nagios.org/pnp-0.6/start首先下載軟體:wget http://docs.pnp4nagios.org/_media/dwnld/pnp4nagios-head.tar.gz解壓:tar zxvf pnp4nagios-head.tar.gzcd pnp4nagios-head編譯步驟:./configure

DavMail server版配置

因為需要Ubuntu unity,所以只能使用server版本,workstation不行啦。下面的命令可以卸載調workstation版本sudo dpkg -r davmail從這裡下載http://davmail.sourceforge.net/download.htmlserver

UTF-8編碼實測

本文打算用C++程式跟蹤UTF-8字元的二進位格式。從實踐上感受一下UTF-8的應用。開發環境是UBuntu12.04 32bit OS. GCC 4.6.3,系統位元組順序是little endian.如果有漢字‘一’,首先通過一個網站工具:http://rishida.net/tools/conversion/ 可以查到它的Unicode碼是:0x4E00用UTF-8對0x4E00進行編碼後是:E4 B8 80,三位元組。下面的代碼用來列印二進位碼:#include

添加check_mk inventory check service

inventory是check_mk發現的可監控服務的一種機制。我們可以給所有的host都添加定時執行inventory check的機制,讓check_mk自動檢測所有的host,如果發現有可以監控的新服務,則網頁上出現警告資訊。配置很簡單, 在/etc/check_mk/main.mk 檔案中添加兩行:inventory_check_interval = 120inventory_check_severity =

Ubuntu 手動掛載隨身碟

有時候只有Ubuntu server,有時候Ubuntu Desktop不能自動掛載隨身碟。這個時候需要一些命令:1.在插入隨身碟前和插入隨身碟後,都輸入同一個命令,檢查多了哪個盤cat /proc/partitions這裡我發現多了   8       16    7827424 sdb   8       17    7825423

捕捉滑鼠的移動

原文:http://www.webreference.com/programming/javascript/mk/column2/index.html參考這一節:Capturing Mouse Movement以下是意譯:document.onmousemove = mouseMove;function mouseMove(ev){ev = ev || window.event;var mousePos = mouseCoords(ev);}function

pnp4nagios無法看圖表

今天發現pnp4隻能看到一個server的所有service的圖表,其他的都點擊後報類似錯誤:perfdata directory ... for host"d1" does not exist如果手動建立該目錄,賦予正確的許可權,又會報目錄為空白的錯誤。看來配置還有點問題,回過頭來看文檔,http://docs.pnp4nagios.org/pnp-0.6/config用synchronous

用UBuntu開發OpenGL程式5

本文不少資料來自網路,經過我的整理加工,盡量在一篇文章中講清楚一小部分程式需要的基本概念,下面是參考列表:<<OpenGL教程>>http://old.blog.edu.cn/user1/20928/archives/2007/1863585.shtmlhttp://blog.163.com/zhaoxin851055@126/blog/static/8112929820092116249704/http://blog.csdn.net/firefly_liu/archi

總頁數: 61357 1 .... 18115 18116 18117 18118 18119 .... 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.