jump to navigation

Linux 指令 — 查看 share library 1 六月, 2010

Posted by leterboy in Embedding System, Tech Learning.
add a comment

ldd 可以查看該executes 使用了哪些 share libraries.

porting QT 4.6 on DevKit 8000 with directFB 14 十二月, 2009

Posted by leterboy in Embedding System, Tech Learning.
add a comment

1. set env
PATH=/home/leter/CodeSourcery/Sourcery_G++_Lite/bin:/home/leter/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PKG_CONFIG_PATH=/home/leter/samba/myproj/gtk_prefix/lib/pkgconfig/

2. configure
./configure -prefix /ITRI/QT_PREFIX -no-largefile -qvfb -embedded arm -little-endian -qt-zlib -qt-freetype -qt-libtiff -qt-libpng -qt-libmng -no-multimedia -no-webkit -no-javascript-jit -no-openssl -I/ITRI/QT_PREFIX/include -xplatform qws/linux-arm-g++

3. modify mkspecs/qws/linux-arm-g++/qmake.conf
# modifications to g++.conf
QMAKE_CC                = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
QMAKE_CXX               = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK              = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB        = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR                = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY           = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-objcopy
QMAKE_STRIP             = /home/leter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-strip

QT_CFLAGS_DIRECTFB = -D_REENTRANT -I/home/leter/samba/myproj/gtk_prefix/include/directfb
QT_LIBS_DIRECTFB = -L/home/leter/samba/myproj/gtk_prefix/lib -ldirectfb -lfusion -ldirect -lpthread

export QTDIR  = /ITRI/QT_PREFIX/

export QTEDIR  = $QTDIR

export  PATH  = /ITRI/QT_PREFIX/bin:$PATH

export LD_LIBRARY_PATH = /ITRI/QT_PREFIX/lib:$LD_LIBRARY_PATH

財務自由 財富自由

Linux make file 撰寫重要 29 五月, 2008

Posted by leterboy in Embedding System, Tech Learning.
add a comment

朋友詢問我 在make file 裡面的寫作

:= 和 = 的差別

底下的文章 有詳細的描述,有興趣的朋友,可以參考一下

http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=185

想出國充個電? 10 一月, 2008

Posted by leterboy in gossip心情點滴, nice soft, Tech Learning, Uncategorized.
add a comment

http://www.yzu.edu.tw/yzu/st/2005/vcd/b4-2.html

中華民國留學資訊站
http://www.saec.edu.tw/

Powered by ScribeFire.

ZK-Ajax 15 十一月, 2007

Posted by leterboy in Tech Learning.
add a comment

ZK 讓你不用大量的javascript 就可以開發出互動性強的Ajax網頁
本身使用標準 XUL (XML User Interface Language)的擴充,稱為ZUL

ZK 目前已出到 3.0 版本,提供 87XUL、83XHTML

相關的Feature 可到 http://www.zkoss.org/release/rn-3.0.0.dsp

Powered by ScribeFire.

SQLite delete column in one table 31 七月, 2007

Posted by leterboy in Embedding System.
8 comments

Data from http://www.sqlite.org/faq.html#q11

SQLite has limited ALTER TABLE support that you can use to add a column to the end of a table or to change the name of a table. If you what make more complex changes the structure of a table, you will have to recreate the table. You can save existing data to a temporary table, drop the old table, create the new table, then copy the data back in from the temporary table.

For example, suppose you have a table named “t1″ with columns names “a", “b", and “c" and that you want to delete column “c" from this table. The following steps illustrate how this could be done:

BEGIN TRANSACTION;
CREATE TEMPORARY TABLE t1_backup(a,b);
INSERT INTO t1_backup SELECT a,b FROM t1;
DROP TABLE t1;
CREATE TABLE t1(a,b);
INSERT INTO t1 SELECT a,b FROM t1_backup;
DROP TABLE t1_backup;
COMMIT;

Powered by ScribeFire.

8月預計書 19 七月, 2007

Posted by leterboy in gossip心情點滴, Nice Tool, Tech Learning, Uncategorized, wealth.
add a comment

1.思考與致富  Napolean Hill

2. Emotional Intelligence <<情商>> Daniel Goleman

VB : data report 橫印問題… 13 七月, 2007

Posted by leterboy in Tech Learning.
10 comments

當您在使用 VB6 中的 DataReport
時,有沒有遇到過一種情形:系統設定的印表機列印方向預設是直印,而您的報表卻是橫式的,但是您卻無法更改印表機的列印方向,除非您到控制台的印表機中去更改預設為橫印!

如果您不希望使用者自行去更改印表機的設定,您就必須在程式中幫他設定好,以下的模組檔案
Orient.bas 就是用來設定印表機的直印或橫印的,說明如下:


Sub ChngPrinterOrientationLandscape(ByVal frm As
For
m):設定為直印

Sub ChngPrinterOrientationPortrait(ByVal frm As Form):設定為橫印

在程式中使用方式如下:

1、設定為直印:ChngPrinterOrientationPortrait
Me

2、設定為橫印:ChngPrinterOrientationLandscape Me

註1:此方法也可適用於 Crystal
Report。

註2:VB6 sp5 之後可直接使用 DataReport1.Orientation 來設定直橫印。

  • 底下內容摘自http://www.blueshop.com.tw/board/show.asp?subcde=BRD20030609120244K8T&fumcde=FUM20050124191756KKC&rplcnt=1

不可以指定紙張大小..我已經找遍了..

但可以用excel列印..以下是我以前所寫的.供您參考…..

Dim excelapp As Object

Dim excelwkb As Object

Dim excelsht As Object

Dim limitpp1 As Integer

   

Set excelapp = GetObject(App.Path & “\book1.xls")

Set excelsht = excelapp.Worksheets(1)

If smoke1 > 0 Then

   excelsht.Cells(3, 2) = smoke1

   excelsht.Cells(3, 3) = smoke1 * 49

   excelsht.Cells(15, 2) = smoke1

   excelsht.Cells(15, 3) = smoke1 * 49

   excelsht.Cells(46, 1) = “合計 " & smoke1 & “人"

end if

excelsht.PrintOut

Yahoo!的Hack Day–值得再深入研究 26 六月, 2007

Posted by leterboy in Tech Learning.
add a comment

Yahoo!的Hack Day

日前有一個 RFID手機同步 Hack

滿有趣的…值的再慢慢去發覺其他有趣的東西

Powered by ScribeFire.

free installer for Windows programs — Inno Setup 17 四月, 2007

Posted by leterboy in nice soft, Tech Learning.
1 comment so far

info from         http://www.jrsoftware.org/isinfo.php

Inno Setup is a free installer for Windows programs. First introduced
in 1997, Inno Setup today rivals and even surpasses many commercial installers
in feature set and stability.

Key features:

  • Support for all versions of Windows in use today: Vista, XP, 2003,
    2000, Me, 98, 95, and NT 4.0. (No service packs are required.)
  • Extensive support for installation of 64-bit applications on the 64-bit
    editions of Windows Vista, Windows XP, and Windows Server 2003. Both the x64 and
    Itanium architectures are supported. (On the Itanium architecture, Service Pack
    1 is required to install in 64-bit mode.)
  • Supports creation of a single EXE to install your program for easy
    online distribution. Disk spanning is also supported.
  • Standard Windows 2000/XP-style wizard interface.
  • Customizable setup types, e.g. Full, Minimal, Custom.
  • Complete uninstall capabilities.
  • Installation of files:
    Includes integrated support for “deflate", bzip2,
    and 7-Zip LZMA file compression. The installer has the ability to compare
    file version info, replace in-use files, use shared file counting, register
    DLL/OCX’s and type libraries, and install fonts.
  • Creation of shortcuts anywhere, including in the Start Menu and on the
    desktop.
  • Creation of registry and .INI entries.
  • Integrated Pascal scripting engine.
  • Support for multilingual installs.
  • Support for passworded and encrypted installs.
  • Silent install and uninstall.
  • Full source code is available (Borland Delphi 2.0-5.0).

Powered by ScribeFire.