Category Archives: C/C++

I-List: Create Your Own Lists of Links

I-List is a very helpful links share platform to share your collected links. It provides an user friendly interface to you for sharing some kind of links. I’ve found that there are two collections which is very helpful for some … Continue reading

Posted in C, C/C++, cloud computing, Java, Linux, Linuxamp;FreeBSD, Windows, 科技, 程式設計, 資工, 軟體(Software), 雲端運算 | Leave a comment

Use the CURL Library in Code::Blocks on Windows Platform

In current days, our college students meet the problem while compiling the CURL library in Code:: Blocks on Windows(i.e. Windows 7) platform. I noted the process that how to write the sample program with CURL library and compile it successfully. … Continue reading

Posted in C/C++, Windows, 程式設計, 網路 | Leave a comment

RS232相關研讀資源

推薦的資料來源: http://www.vr.ncue.edu.tw/esa/a1001/ch07.pdf http://www.esdesigner.com.tw/esd/article/RS232.pdf http://tinyurl.com/c3o73eg http://www.bandcoach.net/LarryDIY@PALMisLIFE/null_modem.htm http://bbs3.nsysu.edu.tw/txtVersion/boards/math-asm/M.867852899.A.html http://www.ftdichip.com/Support/Documents/ProgramGuides/FTChipIDPG11.pdf  [The one of driver supprt documents for UART chip] http://www.wretch.cc/blog/superMagon/34279205 http://www.ltivs.ilc.edu.tw/kocp/mpu/m7/m7-4-1.htm [Recommended]

Posted in C/C++, 科技, 程式設計 | Leave a comment

[Linux] Autoconf, Automake

[筆記一下自己學Autoconf, Automake這一類的GNU Build Tool。][2013/07/14 更新:把linker 引用libraries的順序寫得更清楚一些。] 身為常常用Linux的程式設計師兼MIS人員來說,在Linux系統上面要編譯程式是很家常便飯的事情。最常用的指令是./configure; make; make install ,筆者稱之為「大三元」。只是如果今天角色互換,變成我們來開發程式,並且把程式以開放原始碼的方式發送出去,該怎麼做呢?其實上述說的大三元指令,是由GNU Build System提供的aclocal, autoconf, automake幫你產生configure script file以及對應的Makefile。由於筆者做專案需要引用curl這個library。石頭閒言閒語部落格提供教學雖然基本,但是又不太夠用。以下便筆記一下自己在做該專案的方式,稱不上專業,若有謬誤,敬請多多包涵。 以下分為四個步驟來解說。 一、 先前準備工作1. 今假設你的專案名稱為project。程式碼資料夾為src。    而且我們寫了一份程式碼,放在src/add.cpp底下。2. 先準備四個文件:AUTHORS、ChangeLog、NEWS、README    (1) AUTHORS:寫明作者資訊。    (2) ChangeLog:程式碼異動記錄。    (3) NEWS:最新消息    (4) README:軟體說明與介紹其它像是INSTALL(軟體安裝文件)以及COPYING(版權聲明),automake時,便會幫我們自動產生。注意!如果你用的是舊版的Linux系統(例如筆者的CentOS 5),COPYING是用GPL v2,如果是新的Linux系統,COPYING是用GPL v3。3. 建立doc資料夾。 … Continue reading

Posted in C/C++, Linux, Programming, 程式設計 | 1 Comment

[Program] The Framework for Auto Updating Programs

I’ve made up of some frameworks for auto updating program. If you want to make your program with fashion of auto-updating, you can refer to the following table. Table of Auto Update Program Framework Name Tutorials Platform License Dev. Lang. … Continue reading

Posted in C, C/C++, Java, Programming, 程式設計, 軟體(Software) | Leave a comment

[Linux] The useage of ioctl function: some materials

This post is to note some materials for Linux ioctl function: ioctl: hdio Linux kernel map: Chapter 6.1 ioctl Linux Device Driver 專欄 Linux 驅動程式的 I/O, #1: 基本概念 Linux 驅動程式的 I/O, #3: kernel-space 與 user-space 的「I/O」 Linux 驅動程式的 I/O, #4: … Continue reading

Posted in C/C++, Linux, Programming, 程式設計 | 1 Comment

[C++] 大數運算好用的函式庫GNU MP (GMP)

GNU MP(簡稱GMP)是一個可以進行大數運算(Big number operation)的函式庫,使用C++實作,要應用此函式庫開發的話,要注意它使用LGPL3的License。這個函式庫的出現,對於資訊安全研究領域的人員,是一大利多,可以讓開發人員輕鬆使用大數運算,進行各種資料加解密或簽章的資安技術開發。目前最新版本是5.0.2版,筆者建議讀者可到它的官網下載,閱讀開發文件後,便可輕鬆開發程式。 參考文獻   GNU MP官網 酷!學園 “什麼是GMP?” Multiprecision arithmetic library (64bit library) 植基於橢圓曲線質數視窗化介面之質數判斷工具之設計與實現

Posted in C/C++, Linux, 程式設計, 資工, 資訊安全 | Leave a comment

[轉載] Function Pointer、Delegate和Function Object (C/C++) (template) (.NET) (C#)

Function Pointer(C)、Delegate(C#)和Function Object(C++)這三個是一樣的功能,所以在此一併討論。 詳全文請至:http://www.cnblogs.com/oomusou/archive/2007/05/02/734290.html

Posted in C, C/C++, visual studio, 程式設計, 資工 | Leave a comment

[C++] SVM

用來做分類的好方法,Support Vector Machine (SVM),以下是關於libsvm (台大資工林智仁老師實驗室release )的用法以及教學: piaip的libsvm入門 笨蛋也可以用的libsvm

Posted in C/C++, 學術, 學術研究, 資工 | Leave a comment

[C/C++] 用C語言控制RS232

剛好找到一些關於控制RS232的資源,先將教學紀錄起來,等有空再來寫!1. 黃裕煒老師教的Linux RS-232程式設計2. Serial Programming Guide for  POSIX Operating Systems (出自 Study-Area的這篇)3. RS-232 for Linux and Win32 Library

Posted in C/C++, Linux, 程式設計 | Leave a comment