顯示具有 程式 標籤的文章。 顯示所有文章
顯示具有 程式 標籤的文章。 顯示所有文章

2012年1月12日 星期四

[Fedora 10] build up TI code process

Fedora 10 build code process:

1. Install Fedora 10



  • pick up all sub-option under GCC option. ( Most important thing )


2. Compile toolchain



  • tar xvf Toolchain_01.tar


  • cd Toolchain_01 (Into this folder)


  • Insert code into build-toolchain.sh









    BUILDROOT_NAME=buildroot-2011.08

    PWD  = $(shell pwd)



    # Installation directory. Override this variable for a different destination

    if [ -z $TOOLCHAIN_INSTALL_DIR ]; then \

    export TOOLCHAIN_INSTALL_DIR="$PWD/../data/toolchain" ;\

    fi



    sh build-toolchain.sh


  • build toolchain in /data/Toolchain/


3. Setting enviroment



  • export /data/Toolchain/


  • export CROSS=arm-linux-


4. Download glibc-2.11

Need libc.so.6 version glibc_2.11.

So watch ( ref 1 )



  •   mkdir -v ../glibc-build
    cd ../glibc-build



  • echo "CFLAGS += -march=i486 -mtune=native" > configparms


  • ../glibc-2.11/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.18


  • make


  • make install


5. compile code ( GW-SDK.3.5.0.8 )



  • Into GW-SDK.3.5.0.4/src


  • sh installpkg *.tgz ../target (  Destination folder : ../target)


  • cd ../target


  • make defconfig PRODUCT=DSDK ( DSDK || VGWSDK || VSDK )


  • sh run.txt ( patch some "ln" file into folder  . So compile won't error )


Reference :



  1. Linux From Scratch Ref : 6.9 && 5.7


2011年3月24日 星期四

2011年3月23日 星期三

2011年3月20日 星期日

Source code quality


Source
code quality





When you need to evaluate software products: applications, libraries,
frameworks... Open source software has a powerful tool to perform the
evaluation: the source code. It is like when buying a car, you see the
tyres, wheels, doors, interior equipment and so on, but it is worth to
open the bonnet and have a look at the engine.



Inspecting the
source code you can learn a lot of things about the software and the
team who developed it, if there is a disciplined and intelligent group
of people behind that software. The things I usually inspect while
browsing the source code developed by third parties are:



  • Is
    the code is well organized? Does if it follows coding guide lines like this one
    for java
    or this
    one for c#
    ?. Can you can understand what the classes and methods do
    reading the name? Is the code well commented?

  • Is the code
    complex? Is it spaghetti
    code
    or not. The code is complex when there are classes very big,
    methods have many parameters, and contains a lot of lines, classes have a
    lot of dependencies with other classes. An the opossite, the code is
    simple if classes are small, methods does not contain a lot of lines,
    you can recognize well known design patterns,
    there are not duplicated blocks of code.

  • Is the code managed
    with a version
    control system
    and the changes are reflected properly? Does the
    software have a bug database? Does it provide tests? Does it have a good
    logging system?



If you are an skilled developer or can ask
to one, you can also check more things regarding the source code, but
with these three aspects you can have a general idea about the source
code quality of a software product. It is impressive how your opinion
about the general quality of a product can change before and after
inspecting the source code. Is it better before to be tied to a software
product, to check also the source code. There will be less surprises in
the future.


Reference :
Source code quality

2011年3月15日 星期二

Linux 系统下 10 大開放源碼 POS 系统


POS系统即销售时点信息系统,是指通过自动读取设备(如收银机)在销售商品时直接读取商品销售信息(如商品名、单价、销售数量、销售时间、销售店
铺、购买顾客等),并通过通讯网络和计算机系统传送至有关部门进行分析加工以提高经营效率的系统。POS系统最早应用于零售业,以后逐渐扩展至其他如金
融、旅馆等服务行业,利用POS系统的范围也从企业内部扩展到整个供应链。



我们为您推荐Linux系统下的10款非常优秀的POS开源软件。排名如下:



第1名:PHP Point of Sale

操作平台: LAMP

类型: 零售 POS


介: 安装简便,但是不能操作POS硬件。

地址:https://sourceforge.net/projects/phppointofsale/




2名:Floreant POS

类型: 餐饮 POS

描述: 简易的用户界面,包括客户、修改、订单打印、后厨办公等。


地址: http://freepos.us or http://floreantpos.com




3名:Open Bravo Point of Sale

类型: 零售 POS

平台: Java

描述:
触摸屏,支持各种类型的硬件、扫描器等。并且具有很好的社区支持。

地址:http://forge.openbravo.com/projects/openbravopos




4名:Lemon POS

类型: 零售 POS

描述: 很适合零售业者,具有条码扫描和打印的功能。

平台: Linux


址: https://sourceforge.net/projects/lemonpos



第5
名:Mercator Java POS

类型: 餐饮 POS

描述: 简易界面、按钮、订单管理、对象化设计,社区活跃。

地址:
http://www.globalretailtech.com/



第6名:Tux Point
of Sale

类型: 零售 POS

描述: TuxPOS基于Linux操作系统的POS系统。

平台: Linux


址:tuxpos.sourceforge.net/



第7名:Posterita POS
(Point of Sale)

类型: 零售POS

平台: Web

描述:
完全Web化的POS系统,提供多分店支持。Posterita POS建立在 Adempiere/ERP上。
第8名:CybOrg

类型: 餐饮 POS

描述:
灵活的基于Web界面的POS系统,可以锁定未支付用户。

平台: Perl

地址:sourceforge.net/projects/cyborg/



第9名:synPOS


型: 零售 POS

描述: Java开发的轻型POS系统,可以整合到ERP中。

平台: Java

地址:sourceforge.net/projects/synpos/



第10名nTPV


型: 餐饮 POS

描述: 酒吧、咖啡厅、餐饮的首选,不错的社区支持。

平台: QT,KDE, Postgresql

地址:sourceforge.net/projects/ntpv/



Reference :



  1. ZOL硬件論壇

2011年2月28日 星期一

2010年5月22日 星期六

為 blogger 留言區(comment) 加個對話框吧

<!--2010_05_22 為 blogger 留言區(comment) 加個對話框吧 -->
<b:if cond='data:comment.author == data:post.author'>

<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>

<b:else/>

<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'> <data:comment.body/> </span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>

</b:if>
<!--2010_05_22 為 blogger 留言區(comment) 加個對話框吧 -->

data:comment.author == data:post.author
假如 留言的作者 == 原PO 文張的作者
這做以下的事情.

套用 CSS comment-body-author 的格式

2010年3月6日 星期六

<方法>程式碼放入BLOG

把以下的程式碼放在<head>和</head>之間

code { display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://img504.imageshack.us/img504/599/codebg1742178.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}



如果有遇到<>要轉換成-->"&lt;"與"&gt;"

轉換網頁Encode HTML

延伸閱讀 :
BLOGGER中顯示CODE高質感語法

2010年3月5日 星期五