With Pat
git clone 34.79.821.022|tig#34.79.821.022|tig:FileEncrypt
統一用 git 帳號監管,commit 時還會保有自己帳號資訊 so 都要加 git@
redmine 改為:http://220.128.97.43:3000/
Note
./runmpe_test /mpe_gmap/list
./runmpe_test /news/list
C version:
src/module/gmap_offline/
python version:
module/mpe_gmap.py
current work
can show different news according to news_type
change <description> … <img src="…" …
to <description> … <img src="local_md5.jpeg" …
Todo list
- plurk, gmail, twitter
- wget problem
- ml/src/3rd_party/glibcurl
- daemon with dub
- /ml/src/kernel/remote_img_cache.c
- http://library.gnome.org/devel/gtk-tutorial/stable/
- http://library.gnome.org/devel/guides
- http://www.yolinux.com/TUTORIALS/GDK_Threads.html
- trace glibcurl.c
- mpe裡的event loop操作方式
- glib的event loop
- glibcurl的event loop
- md5 usage
- extract img from rss file
DBus
* http://dbus.freedesktop.org/doc/dbus-glib/index.html
* http://www.freedesktop.org/wiki/Software/dbus
* compile option: `pkg-config dbus-1 dbus-glib-1 –libs –cflags`
* http://www.linuxjournal.com/article/7744
* http://tw.myblog.yahoo.com/jw!8zpO.PiBHxG3FbTzDX2PQIke/article?mid=32&prev=69&next=23
* http://folks.o-hand.com/iain/single-instance-with-dbus/making-single-instance-programs-with-dbus.html
* (asyn) 1 2 3
* (glib-dbus API) http://library.gnome.org/devel/dbus-glib
SVN server
https://opensvn.csie.org/compal
command
svn co svn+ssh://10.113.30.205/src/repos/mpe
command/1021
compal vpn
maple_chou
O2oiiruiiO
Data
weather feed
- Feed Url's
- UK English: http://www.google.co.uk/ig/api?weather=
- US English: http://www.google.com/ig/api?weather=
- Norwegian: http://www.google.no/ig/api?weather=
- Japanese: http://www.google.co.jp/ig/api?weather=
- Russian: http://www.google.ru/ig/api?weather=
- French: http://www.google.fr/ig/api?weather=
- German: http://www.google.de/ig/api?weather=
- http://weather.yahooapis.com/forecastrss?p=94089&u=c
js
- jQuery
- news
- Astrology
- weather API find!
- webkit database to store html
- AJAX
- jQuery
- jQuery 2
- CSS
- js closure
- Safari javascript console:
- 「C:\Documents and Settings\[username]\Application Data\Apple Computer\Safari\Preferences\com.apple.Safari.plist」,其中的[username]是使用者名稱。
- 在檔案裡加入<key>IncludeDebugMenu</key><true/>
- Safari web inspector:
- 「C:\Documents and Settings\[username]\Application Data\Apple Computer\Safari\WebKitPreferences.plist」,其中的[username]是使用者名稱。
- 在檔案裡加入<key>WebKitDeveloperExtras</key><true/>
http://c.csie.org/~flyhermit/w/compal/htmlpage/horoscope.html#1
news.cpp
-------
sec = 0;
finish = false; // global variable
state = 0; // 0 = init, 1= after download rss, 2=after download img
while(ret=page->wait(sec))
{
if(ret == Softkey_Ok)
{
call server to download (rss url)
sec = 1;
return to js // show loading message
}
else if(ret == Softkey_timeout)
{
call server to check whether finish transfering
if (finished && state==0)
{
state = 1;
extract img from rss file
call server to download all img
show loading message
}
else if(finish && state == 1) // all img is already download
{
sec = 0;
return to js //disable loading message
}
else // not finish download
show loading message
}
}
rssWeather.js
---------
.loadXML
{
ajax:True;
success()
{
call update;
}
};
update()
{
$.loadXML();
mozaxxx.message();
}