<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>麦粒事工：Kokkos :: 论坛</title>
    <link>http://www.phillycgc.com/kokkos/</link>
    <description>基督徒社区为基础的草根圣经事工 :: XOOPS 中文论坛</description>
    <lastBuildDate>Thu, 29 Jul 2010 18:28:41 +0000</lastBuildDate>
    <docs>http://backend.userland.com/rss/</docs>
    <generator>CBB 3.07</generator>
    <category>论坛</category>
    <managingEditor>lzj369@gmail.com</managingEditor>
    <webMaster>lzj369@gmail.com</webMaster>
    <language>zh-CN</language>
        <image>
      <title>麦粒事工：Kokkos :: 论坛</title>
      <url>http://www.phillycgc.com/kokkos/modules/newbb/images/xoopsbb_slogo.png</url>
      <link>http://www.phillycgc.com/kokkos/</link>
      <width>92</width>
      <height>52</height>
    </image>
            <item>
      <title>新增向导菜单至新建菜单 [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=18&amp;forum=2</link>
      <description>麦粒开发日记:: 新增向导菜单至新建菜单&lt;br /&gt;
&lt;p&gt;圣经模组有四个向导来引导用户建立每日灵修文章，普通书籍，圣经文本，或者圣经评注。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;在注册这些向导后，他们出现在新建-》其他菜单里。 &lt;/p&gt;&lt;br /&gt;&lt;p&gt;目标将这些向导移动至主菜单： &lt;/p&gt;&lt;br /&gt;&lt;p&gt;方法：注册扩展org.eclipse.ui.perspectiveExtensions扩展点：&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;lt;extension&amp;nbsp; point=&quot;org.eclipse.ui.perspectiveExtensions&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;perspectiveExtension targetID=&quot;&lt;em&gt;org.xinxinxin.cross.OSISPerspectiv&lt;/em&gt;e&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;newWizardShortcut id=&quot;&lt;em&gt;org.xinxinxin.cross.sword.genbookWizard&lt;/em&gt;&quot;&amp;gt;&amp;lt;/newWizardShortcut&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/perspectiveExtension&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/extension&amp;gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;extension point=&quot;org.eclipse.ui.perspectiveExtensions&quot;&gt;&lt;br /&gt;&lt;perspectiveextension targetid=&quot;org.xinxinxin.cross.OSISPerspective&quot;&gt;             &lt;newwizardshortcut id=&quot;org.xinxinxin.cross.sword.genbookWizard&quot;&gt;&lt;/newwizardshortcut&gt;       &lt;/perspectiveextension&gt;&lt;br /&gt;&lt;/extension&gt;  另外一种方法是在perspective里面加入代码：  layout.addNewWizardShortcut(&quot;&lt;em&gt;org.xinxinxin.cross.sword.genbookWizard&lt;/em&gt;&quot;);&lt;/p&gt;</description>
      <pubDate>Sat, 29 Nov 2008 04:23:01 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=18&amp;forum=2</guid>
    </item>
        <item>
      <title>修复H标签 [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=17&amp;forum=2</link>
      <description>麦粒开发日记:: 整合RichTextEditor指圣经模组编辑器&lt;br /&gt;
&lt;p&gt;richtexteditor默认的H标题标签是通过改变字体大小实现的。这不符合HTML的规范和sword项目的要求，所以，须将H1,H2，H3改为输出H标签：&lt;/p&gt;&lt;br /&gt;&lt;p&gt;HTMLSerializer。class：&lt;/p&gt;&lt;br /&gt;&lt;p&gt;private boolean h3flag=false;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private boolean h2flag=false;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private boolean h1flag=false;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;然后：&lt;/p&gt;&lt;br /&gt;&lt;p&gt;if (!partition.getFontDataName().equals(FontStyle.NORMAL_FONT_NAME))&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; FontData fd = fontRegistry.get(partition.getFontDataName()).getFontData()[0];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(partition.getFontDataName().equals(&quot;Header 3&quot;)){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; str.append(&quot;&amp;lt;h3&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; h3flag=true;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(partition.getFontDataName().equals(&quot;Header 2&quot;)){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; str.append(&quot;&amp;lt;h2&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; h2flag=true;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(partition.getFontDataName().equals(&quot;Header 1&quot;)){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; str.append(&quot;&amp;lt;h1&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; h1flag=true;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //str.append(&quot;&amp;lt;span style=&#039;font-family:&quot; + fd.getName() + &quot;; font-weight: normal; font-size: &quot; + fd.getHeight() + &quot;pt;&#039; &amp;gt;&quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //spanTag = true;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;br /&gt;&lt;p&gt;最后：&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(h3flag) {str.append(&quot;&amp;lt;/h3&amp;gt;&quot;);h3flag=false;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(h2flag) {str.append(&quot;&amp;lt;/h2&amp;gt;&quot;);h2flag=false;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(h1flag) {str.append(&quot;&amp;lt;/h1&amp;gt;&quot;);h1flag=false;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;这样，保持文件时，H标签就正确保存了。&lt;/p&gt;</description>
      <pubDate>Wed, 26 Nov 2008 18:03:51 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=17&amp;forum=2</guid>
    </item>
        <item>
      <title>Tutorial: Learn xajax in 10 Minutes [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=16&amp;forum=2</link>
      <description>麦粒开发日记:: Tutorial: Learn xajax in 10 Minutes&lt;br /&gt;
&lt;h1&gt;Tutorial: Learn xajax in 10 Minutes&lt;/h1&gt;   xajax is designed to be extremely easy to implement in both existing web applications as well as new projects. You can add the power of xajax to nearly any PHP script in seven easy steps: &lt;br /&gt; &lt;br /&gt; 1. Include the xajax class library: &lt;pre style=&quot;height: 20px;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;xajax_core/xajax.inc.php&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt; &lt;br /&gt; &lt;br /&gt; 2. Instantiate the xajax object: &lt;pre style=&quot;height: 20px;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$xajax&lt;/span&gt; = &lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; xajax&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt; &lt;br /&gt; &lt;br /&gt; 3. Register the names of the PHP functions you want to be able to call through xajax: &lt;pre style=&quot;height: 20px;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$xajax&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;registerFunction&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;myFunction&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt; &lt;br /&gt; &lt;br /&gt; 4. Write the PHP functions you have registered and use the xajaxResponse object to return XML commands from them: &lt;pre style=&quot;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;function&lt;/span&gt; myFunction&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$arg&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;// do some stuff based on $arg like query data from a database and&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;// put it into a variable like $newContent&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$newContent&lt;/span&gt; = &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;Value of &lt;span style=&quot;color: rgb(0, 0, 153); font-weight: bold;&quot;&gt;\$&lt;/span&gt;arg: &quot;&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$arg&lt;/span&gt;;&lt;br /&gt;    &lt;br /&gt;    &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;// Instantiate the xajaxResponse object&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt; = &lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; xajaxResponse&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;    &lt;br /&gt;    &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;// add a command to the response to assign the innerHTML attribute of&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;// the element with id=&quot;SomeElementId&quot; to whatever the new content is&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;assign&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;SomeElementId&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;innerHTML&quot;&lt;/span&gt;, &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$newContent&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;    &lt;br /&gt;    &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;//return the  xajaxResponse object&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;  &lt;br /&gt; &lt;br /&gt; 5. Before your script sends any output, have xajax handle any requests: &lt;pre style=&quot;height: 20px;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$xajax&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;processRequest&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;  &lt;br /&gt; &lt;br /&gt; 6. Between your tags, tell xajax to generate the necessary (script removed) &lt;pre style=&quot;height: 20px;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$xajax&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;printJavascript&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;; &lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;  &lt;br /&gt; &lt;br /&gt; 7. Call the function from a JavaScript event or function in your application: &lt;pre style=&quot;height: 40px;&quot; class=&quot;code&quot;&gt;&amp;lt;div id=&quot;SomeElementId&quot;&gt;&amp;lt;/div&gt;&lt;br /&gt;&amp;lt;button onclick=&quot;xajax_myFunction(&#039;It worked!&#039;);&quot;&gt;&amp;lt;/pre&gt;&lt;/pre&gt;That&#039;s it. xajax takes care of most everything else. Your biggest task is writing the PHP functions and returning xajax XML responses from them-- which is made extremely easy by the &lt;a href=&quot;http://api.xajaxproject.org/files/xajax_core/xajaxResponse-inc-php.html&quot; target=&quot;_blank&quot;&gt;xajaxResponse&lt;/a&gt; class. &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;  &lt;h1&gt; How do I update my content asynchronously?&lt;/h1&gt; Perhaps the most unique feature of xajax is the xajaxResponse class. Other Ajax libraries require you to write your own callback handlers in Javascript to process the data returned from an asynchronous request and to update the content. xajax, on the other hand, allows you to easily control your content from PHP. The xajaxResponse class allows you to create XML instructions to return to your application from your PHP functions. The XML is parsed by xajax message pump and the instructions tell xajax how to update the content and state of your application. The xajaxResponse class currently offers a number of useful commands, such as Assign, which sets the specified attribute of an element in your page; Append, which appends data to the end of the specified attribute of an element in your page; Prepend, which prepends data to the beginning of the specified attribute of an element in your page; Replace, which searches for and replaces data in the specified attribute of an element in your page; Script, which runs the supplied JavaScript code; and Alert, which shows an alert box with the supplied message text. &lt;br /&gt;&lt;br /&gt;A single XML response may contain multiple commands, which will be executed in the order they were added to the response. For example, let&#039;s say that a user clicks on a button in your application. The onclick event calls the Javascript wrapper for a PHP function. That wrapper sends an asynchronous request to the server through XMLHttpRequest where xajax calls the PHP function. The PHP function does a database lookup, some data manipulation, or serialization. You use the xajaxResponse class to generate an xajax XML response containing multiple commands to send back to the xajax message pump to be executed: &lt;br /&gt;&lt;br /&gt; &lt;pre style=&quot;height: 130px;&quot; class=&quot;code&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt; = &lt;span style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;new&lt;/span&gt; xajaxResponse&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;assign&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;myInput1&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;value&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$DataFromDatabase&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;assign&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;myInput1&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;style.color&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;red&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;myDiv1&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;innerHTML&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$DataFromDatabase2&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;prepend&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;myDiv2&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;innerHTML&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$DataFromDatabase3&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;replace&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;myDiv3&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;innerHTML&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;xajax&quot;&lt;/span&gt;,&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;&amp;lt;strong&gt;xajax&amp;lt;/strong&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;-&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;var x = prompt(&lt;span style=&quot;color: rgb(0, 0, 153); font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;Enter Your Name&lt;span style=&quot;color: rgb(0, 0, 153); font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;);&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$objResponse&lt;/span&gt;;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt; </description>
      <pubDate>Wed, 19 Nov 2008 04:32:46 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=16&amp;forum=2</guid>
    </item>
        <item>
      <title>本站开放中文用户名注册 [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=15&amp;forum=1</link>
      <description>灌水区:: 本站开放中文用户名注册&lt;br /&gt;
欢迎！</description>
      <pubDate>Tue, 21 Oct 2008 13:24:57 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=15&amp;forum=1</guid>
    </item>
        <item>
      <title>人心和神心 [作者 Iwassaved]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=14&amp;forum=1</link>
      <description>灌水区:: 人心和神心&lt;br /&gt;
今天牧师讲道的内容如下，分享与父老弟兄姊妹。&lt;br /&gt;&lt;br /&gt;引用经文：罗马书8：16“圣灵与我们的心同证我们是　神的儿女”；&lt;br /&gt;罗马书8：27“鉴察人心的，晓得圣灵的意思，因为圣灵照着　神的旨意替圣徒祈求。”&lt;br /&gt;&lt;br /&gt;今天我们思考《圣经》中关于“心”的教训。&lt;br /&gt;&lt;br /&gt;1 人心&lt;br /&gt;&lt;br /&gt;1.1 诗篇53：1“愚顽人心里说，没有　神。他们都是邪恶，行了可憎恶的罪孽，&lt;br /&gt;没有一个人行善。”&lt;br /&gt;&lt;br /&gt;人心的景况是：愚昧、玩世不恭、他们心里没有神。&lt;br /&gt;&lt;br /&gt;当一个人没有神时是最可怕的。&lt;br /&gt;&lt;br /&gt;曾经和一位弟兄交通过，他家就住在江苏路基督教堂旁边，他是听着赞美诗长大的，但是他没有信神。当他十八岁到德国留学时，同学们彼此问对方的信仰，这个说：“我是基督徒”；那个说：我信伊斯兰教；还有人说：“我是天主教徒”…当问到这位弟兄时，他昂起头来说：“我什么都不信”。&lt;br /&gt;&lt;br /&gt;同学们听到他这么说后，把脸都转过去了。他很是不解，后来私下问一位同学，为什么大家都不理他了，那位同学说：“因为你不怕神，我们就怕你了…”&lt;br /&gt;&lt;br /&gt;没有信仰的人真是很让人害怕，我个人这么理解：其他的几种宗教的教徒，他们的信仰虔诚度、自我要求不比我们少什么，因为他们有信仰，这信仰约束他们，只是他们没有找到真神。&lt;br /&gt;&lt;br /&gt;有一位哲学家曾经说过：“有信仰的人总比没信仰的人善良。”&lt;br /&gt;&lt;br /&gt;有一些人天不怕、地不怕，这种人最可怕，因为他不怕将来。&lt;br /&gt;&lt;br /&gt;神对人的要求“不可杀人，凡动刀的必死在刀下。”&lt;br /&gt;&lt;br /&gt;还要求人“只要祝福不可诅咒。”&lt;br /&gt;&lt;br /&gt;也包括不可诅咒自己，有些人常说“死了算了，活着有什么意思”这类话，这是不对的，因为我们的身体是神的。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.2 箴言书9:10“敬畏耶和华是智慧的开端，认识至圣者便是聪明。”&lt;br /&gt;&lt;br /&gt;一位弟兄做过这么一个见证，有一年圣诞节的晚上，他作为基督徒本该去教堂，但迫于环境，他和一伙人去了一家夜总会，他也不进里面，就坐在大厅，拿着啤酒，喝一口，就流泪说：“耶稣救我。”他从晚上七点坐到半夜2点，就这么一口酒，一边哭着让耶稣救他，最后那伙人的大哥说：“这小子跟我们不是一路人，他不是喊耶稣吗，就让他去找耶稣吧”。这样他脱了身。&lt;br /&gt;这件事给他最大的教益是：他所信的神真是令人畏惧的真神。他说即使自己有百万家产，在那种地方也会很快败坏尽的。&lt;br /&gt;&lt;br /&gt;有很多时候我们很难胜过自己、很难胜过环境、很难胜过魔鬼撒旦的引诱，但有一点能帮助我们，就是认识神，通过圣灵的帮助 --- 圣灵会用说不出的叹息为我们&lt;br /&gt;代祷。&lt;br /&gt;&lt;br /&gt;愿我们的心归向神。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.3 箴言书19:21“人心多有计谋，惟有耶和华的筹算，才能立定”&lt;br /&gt;&lt;br /&gt;有句通俗的话就是“人算不如天算。”&lt;br /&gt;&lt;br /&gt;我们对我们的人生、将来不要有太多人的意见，要寻求神的旨意。&lt;br /&gt;&lt;br /&gt;“耶和华命定万事。”&lt;br /&gt;&lt;br /&gt;不要天天想人，要天天想神，因为神说了算。&lt;br /&gt;&lt;br /&gt;有人愿意做美梦，这对不对呢？&lt;br /&gt;&lt;br /&gt;我们应当有梦，这个梦应当是我们的信心，是信心而不是迷信，这信心基于对耶和华的敬畏，因为耶和华以勒（耶和华必有预备）。&lt;br /&gt;&lt;br /&gt;梦的实现不是窃取来的，是存着信心仰望而来的。&lt;br /&gt;&lt;br /&gt;那么是不是整天做梦、祷告就能获得想要的呢？&lt;br /&gt;&lt;br /&gt;我们还需要努力，“手勤的必不受穷”。&lt;br /&gt;&lt;br /&gt;所以梦想的实现需要：自己的努力与神的预备。&lt;br /&gt;&lt;br /&gt;殷勤不可懒惰，同时要心里火热服事神。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.4 耶利米书17:9 “人心比万物都诡诈，坏到极处，谁能识透呢？”&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;非典流行的根源据说是食用灵长目动物。在南方某些地方，流行吃鲜猴脑，就是把猴子在夹在特殊的餐桌上，用刀子削去头壳后，蘸着着料舀着还热腾腾的猴脑吃。&lt;br /&gt;&lt;br /&gt;还有这次毒奶粉事件，哪怕掺白面也好啊，可偏偏掺能毒害人的化工原料。&lt;br /&gt;&lt;br /&gt;世界万物都没害人，只有人想法害万物、人在害人、人在破坏环境，因为心里没有神。&lt;br /&gt;&lt;br /&gt;在这样一个世代，我们基督徒在生活中如同羊如狼群，千万不能同流合污，要靠神给的智慧远离罪恶。&lt;br /&gt;&lt;br /&gt;我们的心却不能诡诈，而要与主一天新似一天，过得胜、圣洁的生活。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2 神的心&lt;br /&gt;&lt;br /&gt;2.1 “鼎为炼银，炉为炼金，唯有耶和华熬炼人心”（箴17：3）&lt;br /&gt;&lt;br /&gt;是不是信主后就没有苦难了呢？&lt;br /&gt;&lt;br /&gt;有一位姊妹在工作中导致一只眼睛失明了，更为打击她的是，相恋多年的男友也和她分手了。她找到我问道：“董牧师，为什么神允许这样的苦难发生在我身上呢？”&lt;br /&gt;&lt;br /&gt;我问她：“你失明前信主吗？”&lt;br /&gt;&lt;br /&gt;她激动地说：“我当然信，我们全家都是基督徒！”&lt;br /&gt;&lt;br /&gt;我对她说：“这很好，你现在仍要信，你要坚信万事万物互相效力，是要叫爱神的人得益处。你爱神吗？如果你爱神，就要相信那后来的荣耀必超过先前的。你以前的男朋友一米八，以后神给你预备的要高于一米八；以前你的男友长得帅，以后神给你预备的比他还要帅 …既然神把以前的男友取走了，你就可以赖定神了，求他给你预备更好的”&lt;br /&gt;&lt;br /&gt;这位姊妹就这么做了，之后她遇到一位台湾人，是个没有结过婚的年轻人，后来成了她的先生，婚后不久就申请她去了台湾（有个政策，初婚申请赴台很容易），在那里她住进了别墅，丈夫也很疼爱她，她唯一没变的是爱神、信神的心。&lt;br /&gt;&lt;br /&gt;患难与重担是为熬炼我们的，只要靠主坚持下去，最后一定能得到胜利的冠冕。&lt;br /&gt;&lt;br /&gt;熬炼是为了让我们更加的认识神、看见神、得到神！&lt;br /&gt;&lt;br /&gt;2.2 “人所行的，在自己眼中都看为正，惟有耶和华衡量人心”（箴21：2）&lt;br /&gt;&lt;br /&gt;众人以为美的事要留心去做。&lt;br /&gt;&lt;br /&gt;有些事情可能不违法，可是除了法律，同时我们还有个心律。&lt;br /&gt;&lt;br /&gt;唯独爱主、敬畏神是不落空的。&lt;br /&gt;&lt;br /&gt;无论什么环境都寻求与神同在。&lt;br /&gt;&lt;br /&gt;2.3 “鉴察人心的，晓得圣灵的意思，因为圣灵照着　神的旨意替圣徒祈求” (罗8:27)&lt;br /&gt;&lt;br /&gt;我们要把我们的心交给神，因为我们自己不晓得。&lt;br /&gt;&lt;br /&gt;如哥林多前书所记：“　神为爱他的人所预备的，是眼睛未曾看见，耳朵未曾听见，人心也未曾想到的。”&lt;br /&gt;&lt;br /&gt;求神记念他的话语，祝福父老弟兄姊妹，也愿我们把自己的心交托与神。&lt;br /&gt;&lt;br /&gt;阿们！&lt;br /&gt;</description>
      <pubDate>Sun, 19 Oct 2008 11:45:41 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=14&amp;forum=1</guid>
    </item>
        <item>
      <title>regurlar expressions for sword editor replace function [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=13&amp;forum=2</link>
      <description>麦粒开发日记:: regurlar expressions for sword editor replace function&lt;br /&gt;
(.+)([\d][\d][.][\d][\d])&lt;br /&gt;$1\R$2&lt;br /&gt;&lt;br /&gt;去空格&lt;br /&gt;([^\d^\w&gt;=:&quot;]+?)( )</description>
      <pubDate>Sun, 19 Oct 2008 01:50:23 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=13&amp;forum=2</guid>
    </item>
        <item>
      <title>png2ico - PNG to icon converter (Linux, Unix, GNU, Windows, ...) [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=12&amp;forum=2</link>
      <description>麦粒开发日记::&lt;strong&gt;[推荐]&lt;/strong&gt; png2ico - PNG to icon converter (Linux, Unix, GNU, Windows, ...)&lt;br /&gt;
&lt;a href=&quot;http://www.winterdrache.de/freeware/png2ico/&quot; title=&quot;http://www.winterdrache.de/freeware/png2ico/&quot; rel=&quot;external&quot;&gt;http://www.winterdrache.de/freeware/png2ico/&lt;/a&gt;</description>
      <pubDate>Fri, 17 Oct 2008 15:21:38 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=12&amp;forum=2</guid>
    </item>
        <item>
      <title>计划：查经插件SWORD API 升级，为android开发准备 [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=11&amp;forum=2</link>
      <description>麦粒开发日记:: 计划：查经插件SWORD API 升级，为android开发准备&lt;br /&gt;
升级API至ＪＳＷＯＲＤ１.７.　减少对于ＡＮＤＲＩＯＤ不支持的Java api 的依赖。争取在一个月内作出Google手机的查经软件。当然，支持sword资料库。&lt;br /&gt;&lt;br /&gt;android作为google的开放手机平台，必将有大发展。其强大的功能也预示着手机查经软件可以做的更加功能强大。&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Tue, 14 Oct 2008 02:49:18 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=11&amp;forum=2</guid>
    </item>
        <item>
      <title>VirtualBox disk file 压缩 [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=10&amp;forum=2</link>
      <description>麦粒开发日记:: VirtualBox disk file 压缩&lt;br /&gt;
Problem: Your XP virtual disk file in VirtualBox 1.5.0 has grown too large due to fragmentation. Even though you only have 4 gigs of stuff on the disk, the file is 12GB large!&lt;br /&gt;&lt;br /&gt;Here&#039;s what you need to do:&lt;br /&gt;1. Defragment the disk, moving files to the beginning of the disk.&lt;br /&gt;2. Overwrite all empty space in the disk file with zeros.&lt;br /&gt;3. Close the windows VM and compact the disk file&lt;br /&gt;&lt;br /&gt;You need these free tools:&lt;br /&gt;&lt;a href=&quot;http://www.dirms.com/&quot; title=&quot;http://www.dirms.com/&quot; rel=&quot;external&quot;&gt;http://www.dirms.com/&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.microsoft.com/technet/sysinternals/Security/SDelete.mspx&quot; title=&quot;http://www.microsoft.com/technet/sysinternals/Security/SDelete.mspx&quot; rel=&quot;external&quot;&gt;http://www.microsoft.com/technet/sysi ... als/Security/SDelete.mspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First, boot up your Windows VM under VirtualBox.&lt;br /&gt;&lt;br /&gt;DirMS will defragment the disk and move all files to the beginning (leaving all the free space at the end of the disk.) Run the command:&lt;br /&gt;&lt;br /&gt;dirms c -q&lt;br /&gt;or&lt;br /&gt;dirms c&lt;br /&gt;&lt;br /&gt;You may need to run this several times. Run the built-in XP defrag utility to get a visual map after running dirms. You&#039;ll see the improvements.&lt;br /&gt;&lt;br /&gt;Now wipe the free space with zeros:&lt;br /&gt;&lt;br /&gt;sdelete -c c:&lt;br /&gt;&lt;br /&gt;Now, exit your Windows VM and go back to a Puppy prompt:&lt;br /&gt;&lt;br /&gt;VBoxManage modifyvdi &lt;diskfile.vdi&gt; compact&lt;br /&gt;&lt;br /&gt;That should compact your disk file!</description>
      <pubDate>Mon, 13 Oct 2008 19:36:43 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=10&amp;forum=2</guid>
    </item>
        <item>
      <title>FAQ How do I write a message to the workbench status line? [作者 kokkos]</title>
      <link>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=9&amp;forum=2</link>
      <description>麦粒开发日记:: FAQ How do I write a message to the workbench status line?&lt;br /&gt;
FAQ How do I write a message to the workbench status line?&lt;br /&gt;From Eclipsepedia&lt;br /&gt;Jump to: navigation, search&lt;br /&gt;&lt;br /&gt;When pressing Ctrl+j in a text editor, the editor enters incremental find mode and prints messages in the status bar in the lower left-hand corner.&lt;br /&gt;&lt;br /&gt;This can be done from within any view as follows:&lt;br /&gt;&lt;br /&gt;   IActionBars bars = getViewSite().getActionBars();&lt;br /&gt;   bars.getStatusLineManager().setMessage(&quot;Hello&quot;);&lt;br /&gt;&lt;br /&gt;Editors can access the status line via IEditorActionBarContributor, which is given a reference to an IActionBars instance in its init method. The contributor is accessed from an editor by using&lt;br /&gt;&lt;br /&gt;   IEditorPart.getEditorSite().getActionBarContributor();&lt;br /&gt;&lt;br /&gt;Note that the status line is shared by all views and editors. When the active part changes, the status line updates to show the new active part’s message.&lt;br /&gt;&lt;br /&gt;Parts can also specify an error message on the status line, using the method setErrorMessage. The error message, if provided, always takes precedence over any non–error message that was previously shown. When the error message is cleared, the non–error message is put back on the status line. </description>
      <pubDate>Fri, 10 Oct 2008 15:48:55 +0000</pubDate>
      <guid>http://www.phillycgc.com/kokkos/modules/newbb/viewtopic.php?topic_id=9&amp;forum=2</guid>
    </item>
      </channel>
</rss>