星期三, 12月 06, 2006
星期三, 9月 27, 2006
Debug PCAP
如果沒有辦法開啟網路介面...可以用這個Debug
下載Packet.dll (Win2k/xp/2003) 其他版本
跟程式放在一起執行
之後會生出一個 winpcap_debug.txt 檔案
或許可以釐清一些問題...
或者...可以看看別人寫的WinDump有沒有問題
執行方法
Windump.exe -D 列出所有的介面卡
Windump.exe -i X 監聽第X張卡
星期一, 9月 25, 2006
星期四, 9月 21, 2006
流量軟體...小更新...
有人來信問說斷線之後就沒有辦法回復了...
恩...你可以把網路連線停止再重新啟動
下次會再修改
單位的地方...如果選GB就連底下的流量也會顯示GB...那根本很久才會更新到...
所以...也是下次讓兩個選項分開
另外...定時重設計畫中...
問一個問題 請按文章下面的 comments回應
你會願意贊助這個軟體的作者,讓作者有更多的動力把他寫的更好嗎?
恩...理論上...用到的GTK,Pthread都是LGPL,WinPCAP也允許發佈binary...
所以或許這個程式可以把程式碼藏起來的...
恩...不過我應該是不會這麼作啦...就算沒有人要贊助,也沒有理由這麼作....
因為似乎只是個人興趣的小東西...
大家來試試看今天的更新吧~~
下載
主程式: 下載點
函式庫: GTK+ WinPCAP 第一次安裝就好. Pthread 這個跟主程式放在一起執行.
星期日, 9月 17, 2006
宿網流量軟體 程式碼
1.DevC++ 5.0beta
2.WinPCAP Dev Pack
3.GTK+ Dev Pack
4.Pthread Win32
原始碼在 這裡
DevC++ 5有點問題 有些時候會出現DEP錯誤
這裡教你怎麼關掉
你可能需要另外設定一下Porject Include 跟Library的位置...
讓DevC++ compile的時候可以找到.h跟.a檔...
宿網流量紀錄軟體
可惜我的Google Adsense被取消了...
好啦...騙錢的事情還是不要做的好...
2006/09/18
1.超過流量會斷線
2.Exit按了會關掉
3.單位可以選MB KB B
4.又發現 Thread有bug...修正..23:00
看圖

1.先選網路卡 IP 限制流量的地方填 0 ㄜ...其實他是會從0開始計算
2.MB/KB/B的地方現在還沒有寫 Orz
3.免費IP 重要阿 140.123.*.*就填 140.123就好 後面不用 .
4.Start之後那個流量就會開始增加了
5.可以把主視窗縮到最小 他就會自己不見 要叫出來就按一下 Main
下載
主程式: 下載點
函式庫: GTK+ WinPCAP 第一次安裝就好. Pthread 這個跟主程式放在一起執行.
請愛用OpenSource的7zip解壓縮
IZArc也不錯
星期六, 9月 09, 2006
Pthread conditional wait
int retm=pthread_create(&main_thread,NULL,init_gtk_thread,(void *)0);
pthread_join(main_thread,NULL);
The current thread will be blocked until main_thread finished by calling pthread_exit or return.
But when you want to wait until some condition met, you will need to use a condition variable and a mutex .
Example
int x,y;Thread 1 - wait until x>y
pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_lock(&mut);
while (x <= y) { pthread_cond_wait(&cond, &mut); } /* operate on x and y */ pthread_mutex_unlock(&mut);
pthread_mutex_lock(&mut);
while(x<=y)x++; if (x > y) pthread_cond_broadcast(&cond);
pthread_mutex_unlock(&mut);
- mutex mut protects variables x and y.
- pthread_cond_wait will unlock mut and go to sleep and waits for the condition variable cond to be signalled.
- thread 2 signal cond by calling pthread_cond_signal or pthread_cond_broadcast
星期一, 8月 28, 2006
Xgl Window Decorator
本來的Metacity xfwm4 或是kwm會被gnome-window-decorator或是kde-window-decorator取代
在視窗標題按右鍵就會發現原本一些On The Top 或是Send to Desktop的功能都不見了
Java需要Window Decorator的視窗都會變成灰色,其他的還是可以正常顯示
另外有一個很好用的是cgwd
它可以取代*-window-decorator 而且有theme的功能
http://xgl.compiz.info/
gcompizthemer - 設定佈景的工具
Xgl and Java
用滑鼠可以按,只是內容都不會更新
Novell的人說上了Xgl跟compiz的patch有效
http://lists.freedesktop.org/archives/compiz/2006-June/000224.html
http://lists.freedesktop.org/archives/compiz/2006-June/000227.html
可能因為我用的是cgwd不是compiz ? 感覺沒有效果
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775
目前的解決方法是
export AWT_TOOLKIT="MToolkit"
星期五, 8月 25, 2006
Build Xgl on Ubuntu Dapper
AMD SP 2800+ 64bit
Nvidia 6200TC (64MB+256TurboCache)
DDR 333 1G
Software:
Ubuntu Dapper 64bit
1.Get The Source
Fellow instructions on
http://www.freedesktop.org/wiki/Software/Xgl
Some CVS sources may be hosts by git now.You will get an error when trying to build from cvs.
To get source via git:
git clone GIT-URL LOCAL-DIR
git clone git://git.freedesktop.org/git/xorg/app/compiz app/compiz
2.Build Dependency
You have to use apt to get som -dev packages in order to build Xgl.
Install x11proto-*-dev and some other packages.
3.Install Nvidia Driver
apt-get install nvidia-glx
This package provides Nvidia Driver and also a libGL from Mesa(libGL.so.1.xlibmesa).You need this library to run compiz.
4.Try Your Xgl
Run in your current X.
Xgl :1 -ac -accel xv -accel glx:pbuffer -fp /usr/share/X11/fonts/misc/,/usr/share/X11/fonts/100dpi/,/usr/share/X11/fonts/75dpi/&
metacity &
DISPLAY=:1 /opt/Xgl/bin/compiz --replace decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
DISPLAY=:1 /usr/bin/gnome-terminal &
DISPLAY=:1 /opt/Xgl/bin/gnome-window-decorator --replace &
5.Setup GDM
http://gentoo-wiki.com/HOWTO_XGL#GDM_.28for_GNOME_users.29
6.Xgl Script
#!/bin/sh
metacity &
/opt/Xgl/bin/compiz --replace gconf decoration wobbly fade minimize cube rotate scale move resize place switcher water &
/opt/Xgl/bin/gnome-window-decorator --replace &
Add this script to your Xfce or Gnome start-up list.
You will see Xgl right after login.
To update git sources
Enter git tree which contains a .git directory
for example apps/compiz/
then git pull origin
星期三, 8月 23, 2006
Novell SUSE Linux
SUSE Linux Enterprise 10 Platform
A platform for the entire open enterprise, delivering new solutions that help you outperform competitors, cut costs, neutralize security threats and satisfy the most demanding customers. From desktops to data centers, the best Linux just got better.
Virtualization
Management
Security
Storage
A fully integrated, high-availability storage foundation composed entirely of open source components, that will run Oracle RAC straight out of the box—at no extra charge.Learn more
Java J2EE
Java Platform, Enterprise Edition (Java EE) is the industry standard for developing portable, robust, scalable and secure server-side Java applications. Building on the solid foundation of Java SE, Java EE provides web services, component model, management, and communications APIs that make it the industry standard for implementing enterprise class service-oriented architecture (SOA) and Web 2.0 applications.
星期二, 8月 22, 2006
轉換到Blogger Beta
(怎麼好像剛剛那篇講過?)
轉換過程中遇到一些怪問題...
1.Google帳號 ksc91u@gmail.com 跟Blogger帳號 ksc91u有相同的密碼
轉換之後不管怎麼登入 都會是新的Blogger Beta
2.編輯Template目前還不行Work,雖然可以加入HTML區塊,但是Adsense廣告不會出現
3.好像還沒有Recent Comments
解法
1.
- 從www.blogger.com登入的時候 隨便亂打一個密碼
- 到忘記密碼的網頁,輸入你的login name
- 圖片認證之後,就會把更新密碼的方法寄到你的信箱
- 去填一個新密碼,注意不要用跟Google Account 一樣的密碼
- 之後,同樣的帳號 Beta就用Google的密碼 原本的就用Blogger的密碼
- Blogger Beta的密碼,就是Google Account的密碼,可以從Google Login頁去改變
- Adsense的HTML碼<script type="text/javascript"><!--
google_ad_client = "pub-5332257042426892";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "6699CC";
google_color_bg = "003366";
google_color_link = "FFFFFF";
google_color_text = "AECCEB";
google_color_url = "AECCEB";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> - 把
<!--//-->
刪掉,中間的要保留
SolidDB for MySQL
solidDB Storage Engine for MySQL is an open source, transactional storage engine for MySQL Server. It is designed for mission-critical implementations that require a robust, transactional database. solidDB Storage Engine for MySQL is a multi-threaded storage engine that supports full ACID compliance with all expected transaction isolation levels, row-level locking, and Multi-Version Concurrency Control (MVCC) with non-blocking reads and writes. It is based on the storage engine technology of Solid EmbeddedEngine(TM). which is fully-featured relational database that is being used in over 3 million instances running in production today. They are used by applications such as network management frameworks, class 5 switches, trading room applications, retail point of sale systems, emergency location services, and storage systems.
solidDB Storage Engine for MySQL is fully aligned with MySQL's storage engine integration framework.
http://dev.soliddb.com/doc/docs/doc_html/getting_started.html