顯示具有 Programming 標籤的文章。 顯示所有文章
顯示具有 Programming 標籤的文章。 顯示所有文章

23 2月 2013

Blogger Design Notes

很快的來記錄一下今天對Blogger Template的修改;

1. 首先修改最上方的標題和敘述(description), 找到HTML的Header section, 修改以下兩個項目:
.header-inner .Header .titlewrapper {
  padding: 0px $(header.padding);
}

.header-inner .Header .descriptionwrapper {
  padding: 0 $(header.padding);
  position: relative;
  top: -15px;
  /*left: 440px;*/
}
2.再來是將每篇post上方的日期icon和標題, 更改為置中:
/* Headings
----------------------------------------------- */
h2 {
  margin: 0em 0 2em 0;
  font: $(widget.title.font);
  color: $(widget.title.text.color);
  text-transform: uppercase;
  text-align:center; /* casper added */
}
h3.post-title, .comments h4 {
  font: $(post.title.font);
  margin: 0em 0 0;
  text-align: center;
}
3.調整sidebar與post clolumn的間距:
.sidebar {
font-family: verdana;
font-size:1.1em;
padding-left: 40px;
}
另外就是增加了幾個小的CSS class for description texts,
重新加回syntax highlighter and configure the theme to "midnight",

Template哪天一不小心就被reset, 寫篇紀錄才可以恆久遠。

16 6月 2011

An exotic journey from "Uncle Bob" again.


Open an email form InformIT, it introduce me a new book 
《The Clean Coder》from Uncle Bob. 
The man tell me about "boy scouts rule".

When reading the Praise for the book, I suddenly fell into an 
website "Blog of RLBogetti".
"AGILE!!", the whole new nouns.

有一個似乎已荒廢的Blog作者說:
延伸敏捷式開發的議題,筆者聯想到一個一直在台灣軟體資訊界爭論不休的問題, 就是CMMI究竟對臺灣軟體有沒有幫助。
所以從CMMI的介紹文章, "何謂CMMI-DEV", 更進一步找到石頭大師的一篇
軟體工程三大陣營, RUP, CMMI, Agile Method.

19 7月 2010

Use VS2005 on Windows7

VS2005 is my primary IDE to coding on C\C++, OpenGL. When I install it on Win7, the conflict appears. 
This is the first time that I felt the official suggestion so powerful.
According to the steps as below, I can use the VS2005 right now.

First, I install the service pack 1 of VS2005 for WinXP. Present file version is:
VS80sp1-KB926601-X86-ENU.

Then the second step, 
install the service pack for Vista or later Windows OS. Present file version is: 
VS80sp1-KB932232-X86-ENU.

I have tried it and it does work! so blog this for you or me in the future.

07 7月 2010

error: VS2005 MSVCR80D.dll

This isn't first time I run into this error: "can't find msvcr80d.dll" when I try to use the simple C code from books' author.
In the past, I only knew that came from IDE's version difference. But haven't tried to solve it. ( I use Visual studio 2005 )

I found the good solutions for this issue.   /* Original Post */

One of solutions I used and have proved it to be workable:
=> Change the project's location from FAT disk to NTFS.  

(Thanks the biggest NB company Q gave me a old enough NB with FAT disk.. :(  )

other solutions from the original website are as below but NOT be verified yet!!!
1.)  project properties-->manifest tool-->input and output-->Embed manifest--> choose NO.--> rebuild.
2.) manifest tool-->General Item-->Use Fat32 work-around-->YES.-->rebuild.

28 6月 2010

how to enable/disable drivers that with identical friendly names.

I am assigned to join a OEM project recently.
Target platform has 4 chips driven by same drivers.
So, all labels in the driver that we can check using Device Manager are almost identical.


How can I write a program to enable/disable those drivers without manual mouse control?


Answer is to use the devcon.exe from Windows Driver Development Kit (WDK) from: http://support.microsoft.com/kb/311272/zh-tw


In my case, the few different items between four drivers is the "Device Instance Path".
For example, 
PCI\VEN_1AF2&DEV_A001&SUBSYS_A0011AF2&REV_00\
4&2D325CF4&0&00E3
PCI\VEN_1AF2&DEV_A001&SUBSYS_A0011AF2&REV_00\
4&30419C1C&0&00E5


Checking the "Hardware IDs" and "Device Instance IDs" chapters in "WDK documentation",
you will find some definitions about which part called hardware ID and instance ID.
At the same time, type "devcon.exe help enable" in the cmd.exe to look how to use devcon.


Finally, in my case:
I use "devcon.exe enable @*00e3" (or use disable) to control driver with the batch file.


PS. this tool is only workable in Windows enrivonment, not under pure DOS.

11 4月 2010

solution of debugging console app with VS2005

Record this solution for constructing a debug version console app.
Especially useful for writing a simple OpenGL project.

//----------------------------------------------------------------//
(Forward)
Error Msg:
Debugging information for "YourProject.exe" cannot be found or does not match. Binary was not built with debug information.
Resolution:
To enable debugging:

1) Goto Project->HelloWorld Properties
2) On the left expand "Configuration Properties"
3) Expand "C/C++"
4) On the left, Select "General"
5) On the right, change "Debug Information Format" to "Program Database For Edit And Continue (/ZI)"
5) On the left, Select "Optimization"
6) On the right, change "Optimization" to "Disabled (/Od)"
7) On the left, expand "Linker"
8) On the left, select "Debugging"
9) On the right, change "Generate Debug Info" to "Yes"
10) Click ok
11) Set your breakpoints
12) Rebuild your application