2007年9月28日 星期五

add ajax.js and table.js

move codes for ajax from bcm.js to ajax.js.
modify modal.js to behave correctly in IE6.
add table.js to provide scrolling table.

note:
H.M. suggests to add summary rows for sub-total/total. It is a good idea.

2007年9月19日 星期三

整理 javascript library

花了一點時間, review 上星期 完成的 jscal.js.

整理成
bcm.js: 放一些 utility functions. e.g. addEvent()/rmvEvent()/stopEvent() etc.
calendar.js: 將 jscal.js 改名, 並且將所有的 jscal 移到 bcm.calendar. 重新命名相關的className. 全部改成 bcmCalendar 開頭.
selector.js: 將之前的 一 focus() 後, 就彈出的 <select> 部分, 整理到這個 javascript file 中, 並且調整 cgi-bin/mtn/prt1.pl 使用這組 library.
mnu.js: 之前 功能選單 所使用到的 javascript.

相關檔案放在 192.168.0.189:/usr/local/etc/httpd/htdocs/bcm 下.
sample-cal.htm 有一個使用範例.
sample-mnu.htm
sample-sel.htm 是使用 selector.js 的例子.

2007年9月12日 星期三

some sip products url

EutelVoIP

Home at PortaOne - VoIP Solutions Company

VaxVoIP SIP SDK includes SIP activeX, SIP Lib, SIP Dll and SIP Cabinet

Signaling gateway, SS7 signaling converter, IP PRI gateway, media gateway, SS7 gateway

FreeSWITCH | Communication Consolidation

Is SE Linux only for Linux?

Is SE Linux only for Linux?

I have just been asked for advice on whether SE Linux is Linux specific, and therefore whether code related to SE Linux should always be stored with other Linux specific code instead of being in the main branch of certain free software projects.

One example of SE Linux access controls being implemented on a different OS is the work to port SE Linux to Mac OS/X. Here is a paper on the topic presented at the SE Linux Symposium 2007, and the main site is at http://sedarwin.org. One thing I have been doing is trying to get some friends interested in doing similar work for GNU Hurd (there are some similarities between Darwin and HURD so the work done on Mac OS/X “Darwin” will help the HURD effort). I believe that The HURD has the potential to offer significant security benefits due to the micro-kernel design. One significant problem area in computer security is kernel security flaws, if the kernel can be split into a set of independent processes that run with minimal privileges then the scope of such problems is dramatically decreased - and the possibility of upgrading parts of a kernel on a live machine is provided. As people such as Linus point out there is a performance overhead to micro-kernels, but most machines are idle most of the time anyway. I believe that reliability and security are more important than getting the last 10% of system performance for most machines. The success of Xen is evidence that features other than maximum performance are desired.

Another example of SE Linux access controls on a non-Linux platform is the MAC framework in the TrustedBSD project. This implements SE Linux access controls on top of FreeBSD. From reading the documentation it seems that the amount of changes required to the SE Linux code base for implementation on TrustedBSD was significantly smaller than the changes required for Darwin.

Sun is also apparently considering adding type-enforcement to Solaris. It’s yet to be seen whether this happens and if so whether it is compatible with SE Linux.

So it seems that a significant portion of the SE Linux code base is portable, and in particular the user-space code should port well. The interfaces for and methods labelling files etc should port well between platforms. Therefore I recommend not having SE Linux code split into Linux specific trees and instead having a compile option to enable SE Linux support.

終於完成一個 javascript 的 calendar

終於完成了. jscal.js

記得 include 這個 檔案, 並且將 cal.png 放在適當的目錄.
並且在 要使用的 INPUT tag 內, 加上 onfocus="showCal(this)". 這樣就完成了.

順便了解了 如何攔截 適當物件的 event 來隱藏 已彈出來的 calendar div.

還有一些要 tune 的. 整理一下後, 可以開始 建立 公司自己的 javascript library 了.

IP PBX - 3CX PBX, PABX software for Windows

http://www.3cx.com/

there is a free version.

2007年9月10日 星期一

how to know sybase handle a query

1. set showplan on
test with 'set noexec on/off' (for statment) and 'set fmtonly on/off' (for stored procedure)
2. dbcc traceon(3604,302,310)
3. set statistics io on


http://www.webservertalk.com/archive87-2006-3-1422390.html
http://infocenter.sybase.com/help/topic/com.sybase.dc20022_1251/html/monitoring/X27349.htm
http://infocenter.sybase.com/help/topic/com.sybase.dc20023_1251/html/optimizer/X17067.htm