[Tip: log file]Some Quick Notes

1. Log File is important. I didn't realize its importance until I met a issue that was only reproducible on QA machine and it's hard for me to figure out the reason. I added some code in my project to output some check point status into a log file

float double的記憶體表示及比較大小的方法

參考:float和double類型的記憶體分布和比較方法收藏 Comparing floating point numbers 總結幾點:0. float佔4byte,精度是6~7位;double佔8byte,精度是15~16位。 1. C/C++的浮點數據類型有float和double兩種。它們在記憶體中是以科學計數法的結果來儲存的。 類型float大小為4位元組,即32位,記憶體中的儲存方式如下:  符號位(1 bit) 指數(8 bit)

Better understanding of CER system

Corp always has its CER system which is to work as a central platform for handling customer error reports. Some understanding about it:1. When user sent a CER report on his machine, such report will be sent to CER system and either join in an

A pity VS out of date issue

I met a VS out-of-date compiling issue. The situation is:1. It appear all the time if compiling a VS2010 C++/CLI project. After a successful build, press F5 to run it, prompt me: out of date! after using debugview for further research, the result is:

Cross Platform Development Prethinking

As I am going to do cross-platform development, I can only see this is a prethinking based on my observation to other such teams.1. You still need to work on Windows in major time if you are familiar with windows in long time. Of course, if you have

Review虛函數

 1. 理解虛函數賴以生存的底層機制:vptr +

print message to debug output window (VS)

Some times we could want to print the debug messages to a window (console or windows) or a file, we debug our programms with these information. There's a better way to debug programm, print the message to output window if you use VS, and you can

FP語言Lisp的特點

初識Lisp:-         語言的核心設計的非常小。Lisp語言只有7種公理(基本操作符)。-         寫出來代碼很短。30多行的代碼,就可以寫一個Lisp方言的解譯器。據說C代碼平均是Lisp代碼的7到10倍,還有說20倍的。-         為什麼Lisp代碼更短?就是因為使用“自下而上”的編程方法。你不是在基礎語言上開發,而是在基礎語言上構件一種你自己的語言,然後再用後者開發。-         你要是不能想象Lisp語言的代碼是什麼樣,可以試著想象XML,想象XML中的每

[tip]how to diagnose module loading issue

Basically, you have two choices: dependency walker and GFlags from MS.Tips about using dependency walker to find missed/failed to load dependency modules:1. Run application.bat and execute depends.exe there to consume your application's environment

[tip]transparent bmp

一般情況下,需要透明背景圖片時,會首先想到icon檔案。但是,有些場合下,必須用其他格式比如bmp。透明背景的bmp叫做loose image,做法很簡單:1. 如果是從icon檔案轉換為bmp,可以用photoshop + icon plugin的組合。註:ps不能直接開啟icon檔案。2. 開啟icon檔案或建立一檔案,只包含你想要透明顯示的東西。3. 建立一新層,作為背景層,用油漆桶把(192,192,192)的rgb設在那一層上。4. 儲存為bmp。搞定。

[tip]關於Fix Issue

如下幾點(持續更新中):1. 在分析問題過程中,你會陸陸續續得到很多零散的結論。這些結論的綜合會最終協助你解決掉問題,找到真正的癥結。一個好的習慣是:在分析過程中,把得到的這些結論make a list,從而可以更有效綜合把握你的進展情況。2. 在communication過程中,ask question instead of just giving answers, 當然也是可以的。。不要在收到一封mail的時候,老想著一定要給出answer;其實合理髮問也是非常有用的推動解決問題的手段。

[Problem 13]歐拉

這一題的思路還是比較清晰的:首先,由於每個數都是50位,還要計算100個這樣的數的和,unsigned long long 都表示不了這麼大的數,硬上肯定是不行滴;那麼,考慮到只需要列印出和值的頭10位,才有了用多維陣列求解的方法:1. 首先把這100個數字儲存到text檔案中:這樣比較好讀取。2. 把這個檔案中的所有數字解析到arr[100][50]中。3.

[複習]時間複雜度及計算

一個演算法的複雜度通常由其時間複雜度和空間複雜度來表達。這裡,主要複習下時間複雜度的概念及計算。概念:時間複雜度即一個演算法所需運算的次數隨問題規模n變化的函數。常見時間複雜度及對應複雜度關係:c < log2N < n < n * Log2N < n^2 < n^3 < 2^n < 3^n < n!計算方法:  根本上有二:計算一個語句的頻度(執行次數)和時間複雜度。1)快速求解方法:看迴圈層數及對應迴圈次數。

理解transformation Matrix

1.Every matrix M is associated with a coordinate system. This coordinate system has origin (t0, t1, t2) and vectors (a00,a110,a20), (a01,a11,a21), and (a02,a12,a22) as axes. Matrix M maps the standard coordinate system to the coordinate

dotNet Assembly Basic

dotNet Assembly basic (a overall topic Assemblies and the Global Assembly Cache can be found in MSDN)Assemblies have the following properties:Assemblies are implemented as .exe or .dll files.You can share an assembly between applications by placing

[複習]記憶體對齊

1. 概念:程式員眼中的記憶體是按byte儲存的;而cpu眼中的記憶體是以chunk為單位的,chunk可以是2,4,8bytes。如果放在記憶體中的資料沒有被對齊即其記憶體位址不是對應cpu記憶體訪問粒度的整數倍,讀取這段資料cpu就需要更多次的記憶體訪問,相比較對齊的記憶體資料而言。記憶體對齊後,佔據的記憶體必然是增多的。2. 最明顯的獲知有記憶體對齊這回事的例子是sizeof(struct a)。由於我們可以通過編譯選項#pragma pack(n)來控制資料的記憶體存放的對齊粒度(1,2

[tip]如何快速在一堆lib檔案中找到你所需要的函數的import library檔案

項目中碰到一個問題:所依賴的ObjectARX升級新版本之後,所用到的一些原本從acad.lib中匯出的函數現在在新版本的acad.lib中找不見了。那那些函數現在從哪個lib檔案匯出呢?ObjectARX裡包了一堆的lib檔案。當然,一個比較簡單並且比較有道理的做法是:根據lib檔案的名字選擇那些可能包含這些函數的lib檔案用dumpbin匯出其export

[tip]Unusual memory bit patterns

文章目錄 0xcccccccc0xbaadf00d0xdeadbeef0xabababab0xbdbdbdbd0xfdfdfdfd0xcdcdcdcd0xdddddddd0xfeeefeee Unusual memory bit patternsSoftware development is an intellectual challenge. Sometimes the process is interrupted by

Persistence VS Serialization

1. Persistence in computer science refers to the characteristic of state that outlives the process that created it. 2. Serializatioin. In computer science, in the context of data storage and transmission, serialization is the process of converting a

windbg初嘗

最近看CER,終於實際用到了windbg(汗。。)結合我有限的使用,總結下面幾點:1. 從MS的這裡下。windbg是屬於debugging tools的,又被包含在了windows SDK installer裡面。2. 對於看CER來說,主要就是根據dump檔案看到callstack,進而分析出重現步驟或找到fix的方法。三方面:load dump檔案;設定symbol,image的path。然後執行.loadby sos + !analyze -v就好了。3. 需要任何協助,輸入.hh。  

總頁數: 61357 1 .... 10258 10259 10260 10261 10262 .... 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.