Work

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> … &#60;img src="…" …
to <description> … &#60;img src="local_md5.jpeg" …

Todo list

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

js

  • 「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();
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License