<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Rigorous and Reliable (RAR) - BIBO]]></title>
		<link>http://rar.shufangkeji.com:60380/</link>
		<description><![CDATA[Rigorous and Reliable (RAR) - http://rar.shufangkeji.com:60380]]></description>
		<pubDate>Thu, 27 Aug 2026 00:29:35 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[sw copyright of bibo]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9713</link>
			<pubDate>Wed, 29 Sep 2021 15:39:21 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9713</guid>
			<description><![CDATA[we should register the sw copyright (软件著作权) of bibo.]]></description>
			<content:encoded><![CDATA[we should register the sw copyright (软件著作权) of bibo.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO -- U]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9630</link>
			<pubDate>Thu, 12 Aug 2021 13:42:52 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9630</guid>
			<description><![CDATA[Users' info for BIBO<br />
<br />
===<a href="http://tab.d-thinker.org/showthread.php?tid=17270" target="_blank">Ue</a>===<br />
BIBO系统运行需要启动simpleserv和sage<br />
启动BIBO服务：<br />
p1. 在&#36;sage_portal即wp289b-6的sage用户下运行~/sage/bin/sage_restart<br />
p2. 在&#36;helper_portal即wp289b-1的root用户下执行/thinker/local/soft/bibo/util/startbibo.sh<br />
注意：&#36;helper_portal和&#36;sage_portal为sage mic配置<br />
<br />
停止BIBO服务<br />
q1. root用户下执行/thinker/local/soft/bibo/util/stopbibo.sh<br />
======<br />
<br />
---<br />
20210824/zhihao: link ue<br />
20210812/zhihao: reverse bibo start steps<br />
20210812/zhihao: add bibo start info]]></description>
			<content:encoded><![CDATA[Users' info for BIBO<br />
<br />
===<a href="http://tab.d-thinker.org/showthread.php?tid=17270" target="_blank">Ue</a>===<br />
BIBO系统运行需要启动simpleserv和sage<br />
启动BIBO服务：<br />
p1. 在&#36;sage_portal即wp289b-6的sage用户下运行~/sage/bin/sage_restart<br />
p2. 在&#36;helper_portal即wp289b-1的root用户下执行/thinker/local/soft/bibo/util/startbibo.sh<br />
注意：&#36;helper_portal和&#36;sage_portal为sage mic配置<br />
<br />
停止BIBO服务<br />
q1. root用户下执行/thinker/local/soft/bibo/util/stopbibo.sh<br />
======<br />
<br />
---<br />
20210824/zhihao: link ue<br />
20210812/zhihao: reverse bibo start steps<br />
20210812/zhihao: add bibo start info]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[query]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9628</link>
			<pubDate>Tue, 10 Aug 2021 19:57:53 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9628</guid>
			<description><![CDATA[Queries search the corpus and return matching results. The workflow follows the targeting op pattern <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227" target="_blank">http://rar.shufangkeji.com:60380/showthr...p?tid=9227</a>]]></description>
			<content:encoded><![CDATA[Queries search the corpus and return matching results. The workflow follows the targeting op pattern <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227" target="_blank">http://rar.shufangkeji.com:60380/showthr...p?tid=9227</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO on wp289b]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9627</link>
			<pubDate>Mon, 09 Aug 2021 17:24:30 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9627</guid>
			<description><![CDATA[There is a BIBO system on wp289b<br />
<br />
We can access wp289b with<br />
p1. login JumpServer with "143.64.64.169/assets/user-asset/"<br />
p2. click "Default - 政务云X86 - 擎盾 - 案例查询系统{01..06}"<br />
<br />
We can access  website of "强制检索系统" with "143.64.64.145/a/force", query cases by clicking "案例上传"<br />
<br />
We can transfer files to dir "/tmp" of wp289b by <br />
p1. access ftp website with "143.64.64.169/koko/elfinder/sftp"<br />
p2. drag files from Win7 to "政务云X86 - 擎盾 - 案例查询系统{01..06}"]]></description>
			<content:encoded><![CDATA[There is a BIBO system on wp289b<br />
<br />
We can access wp289b with<br />
p1. login JumpServer with "143.64.64.169/assets/user-asset/"<br />
p2. click "Default - 政务云X86 - 擎盾 - 案例查询系统{01..06}"<br />
<br />
We can access  website of "强制检索系统" with "143.64.64.145/a/force", query cases by clicking "案例上传"<br />
<br />
We can transfer files to dir "/tmp" of wp289b by <br />
p1. access ftp website with "143.64.64.169/koko/elfinder/sftp"<br />
p2. drag files from Win7 to "政务云X86 - 擎盾 - 案例查询系统{01..06}"]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO on limbo305]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9620</link>
			<pubDate>Sun, 08 Aug 2021 11:35:11 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9620</guid>
			<description><![CDATA[BIBO is deployed on limbo305]]></description>
			<content:encoded><![CDATA[BIBO is deployed on limbo305]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO report]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9507</link>
			<pubDate>Fri, 18 Jun 2021 16:46:07 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9507</guid>
			<description><![CDATA[We are writing a report for BIBO.<br />
<br />
The filename stemp is BIBO-基于分布式消息空间技术的智能文本检索 in order for the customer to understand. The up-to-date version is in more recent reply posts.<br />
<br />
Perhaps the customer is also writing a report. We added something to it and the filename stem is 技术特性. The up-to-date version is in more recent reply posts.<br />
<br />
<br />
---<br />
20210708/lingu: summarize the docs.]]></description>
			<content:encoded><![CDATA[We are writing a report for BIBO.<br />
<br />
The filename stemp is BIBO-基于分布式消息空间技术的智能文本检索 in order for the customer to understand. The up-to-date version is in more recent reply posts.<br />
<br />
Perhaps the customer is also writing a report. We added something to it and the filename stem is 技术特性. The up-to-date version is in more recent reply posts.<br />
<br />
<br />
---<br />
20210708/lingu: summarize the docs.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[test_indel_zeng]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9475</link>
			<pubDate>Sat, 22 May 2021 10:31:15 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9475</guid>
			<description><![CDATA[test_indel_zeng inserts and deletes the variant case of zengxingliang<br />
<br />
Actually it inserts and deletes. It is in fact a bit tricky because we do not want a delete test to delete a good case if the caseid matches. To avoid problems, i am creating two new cases:<br />
<br />
corpus case: zengxingliang-newkey-deletetest.json<br />
caseid "ffbe261c9e6311eabceb005056c00001"<br />
<br />
inquiry case: zengxingliang-inquire-deletetest.json<br />
caseid: "ffbe261c9e6311eabceb005056c00001"<br />
<br />
Accordingly, i create two new tests:<br />
test_insert_zengx: insert case "ffbe261c9e6311eabceb005056c00001" with zengxingliang-newkey-deletetest.json<br />
test_inquire_zengx: query with new case "ffbe261c9e6311eabceb005056c00001" with zengxiangliang-inquire-deletetest.json<br />
<br />
Written by zhihao, test_delete_testcase.sh deletes case "ffbe261c9e6311eabceb005056c00001" specified in del_test_case.json<br />
<br />
The test logic flow is:<br />
<br />
<span style="font-weight: bold;"> D info</span><br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>t1. test_insert_zengx<br />
t2. test_inquire_zengx -- should be success<br />
t3. test_delete_testcase<br />
t4. test_inquire_zengx -- should fail</code></div></div>
<br />
---<br />
20210818/lingu: define test programs<br />
20210818/zhihao: add D info]]></description>
			<content:encoded><![CDATA[test_indel_zeng inserts and deletes the variant case of zengxingliang<br />
<br />
Actually it inserts and deletes. It is in fact a bit tricky because we do not want a delete test to delete a good case if the caseid matches. To avoid problems, i am creating two new cases:<br />
<br />
corpus case: zengxingliang-newkey-deletetest.json<br />
caseid "ffbe261c9e6311eabceb005056c00001"<br />
<br />
inquiry case: zengxingliang-inquire-deletetest.json<br />
caseid: "ffbe261c9e6311eabceb005056c00001"<br />
<br />
Accordingly, i create two new tests:<br />
test_insert_zengx: insert case "ffbe261c9e6311eabceb005056c00001" with zengxingliang-newkey-deletetest.json<br />
test_inquire_zengx: query with new case "ffbe261c9e6311eabceb005056c00001" with zengxiangliang-inquire-deletetest.json<br />
<br />
Written by zhihao, test_delete_testcase.sh deletes case "ffbe261c9e6311eabceb005056c00001" specified in del_test_case.json<br />
<br />
The test logic flow is:<br />
<br />
<span style="font-weight: bold;"> D info</span><br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>t1. test_insert_zengx<br />
t2. test_inquire_zengx -- should be success<br />
t3. test_delete_testcase<br />
t4. test_inquire_zengx -- should fail</code></div></div>
<br />
---<br />
20210818/lingu: define test programs<br />
20210818/zhihao: add D info]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[test_delete_zeng]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9474</link>
			<pubDate>Sat, 22 May 2021 10:30:33 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9474</guid>
			<description><![CDATA[test_delete_zeng deletes the case of zengxingliang<br />
<br />
test_delete_zeng.sh<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=del_zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send delete request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
]]></description>
			<content:encoded><![CDATA[test_delete_zeng deletes the case of zengxingliang<br />
<br />
test_delete_zeng.sh<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=del_zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send delete request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Workflow of bibo queries]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9227</link>
			<pubDate>Sat, 07 Nov 2020 21:49:02 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9227</guid>
			<description><![CDATA[The workflow of bibo queries use SageRun in Sage. SageRun drives an ATPA to perform a task for a QID.<br />
<br />
The call path starts in scali invoking ProcRequestDefault. We optimize the timing of the steps and should make it complete in no more than 1s.<br />
<br />
r1: scali<br />
-&gt; r3: getRequest<br />
-&gt; r5: ProcRequestDefalt<br />
-&gt; r7: queryMatch<br />
-&gt; r9: SageRun instances [1..llTaskCnt&#93;<br />
-&gt; r11: atpa by user sage (atpa may log some info in atpa.log-&#36;dd where dd is the datum number. Note that some log may be somewhere else.)<br />
-&gt; r13: atpa.sh by user sage (log in atpash.log-&#36;dd, also check output files in the query's dir in fastdata))<br />
-&gt; r15: <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9166" target="_blank">procone.py</a> (log is perhaps in atpa.sh's log or procone2-&#36;tycano.log)<br />
<br />
Most of the log file locations are /thinker/local/today/users/&#36;USER <br />
<br />
We optimized r1 to r7 from <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44563#pid44563" target="_blank">20+s</a> to <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44568#pid44568" target="_blank">3s</a> by reducing memory footprint used by SageRun, skipping SageRunPrep and <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44568#pid44568" target="_blank">increasing atp count</a>.<br />
<br />
r9 and r11 still takes <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44569#pid44569" target="_blank">13s</a>. If we <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44570#pid44570" target="_blank">reduce the task count to 90</a>, the time is reduced to 8s. With atpa.sh, it takes <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44571#pid44571" target="_blank">10s</a>.<br />
<br />
---<br />
20210813/lingu: log info<br />
20210811/zhihao: link procone2.py<br />
20201108/lingu: rename to be workflow.]]></description>
			<content:encoded><![CDATA[The workflow of bibo queries use SageRun in Sage. SageRun drives an ATPA to perform a task for a QID.<br />
<br />
The call path starts in scali invoking ProcRequestDefault. We optimize the timing of the steps and should make it complete in no more than 1s.<br />
<br />
r1: scali<br />
-&gt; r3: getRequest<br />
-&gt; r5: ProcRequestDefalt<br />
-&gt; r7: queryMatch<br />
-&gt; r9: SageRun instances [1..llTaskCnt]<br />
-&gt; r11: atpa by user sage (atpa may log some info in atpa.log-&#36;dd where dd is the datum number. Note that some log may be somewhere else.)<br />
-&gt; r13: atpa.sh by user sage (log in atpash.log-&#36;dd, also check output files in the query's dir in fastdata))<br />
-&gt; r15: <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9166" target="_blank">procone.py</a> (log is perhaps in atpa.sh's log or procone2-&#36;tycano.log)<br />
<br />
Most of the log file locations are /thinker/local/today/users/&#36;USER <br />
<br />
We optimized r1 to r7 from <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44563#pid44563" target="_blank">20+s</a> to <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44568#pid44568" target="_blank">3s</a> by reducing memory footprint used by SageRun, skipping SageRunPrep and <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44568#pid44568" target="_blank">increasing atp count</a>.<br />
<br />
r9 and r11 still takes <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44569#pid44569" target="_blank">13s</a>. If we <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44570#pid44570" target="_blank">reduce the task count to 90</a>, the time is reduced to 8s. With atpa.sh, it takes <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9227&amp;pid=44571#pid44571" target="_blank">10s</a>.<br />
<br />
---<br />
20210813/lingu: log info<br />
20210811/zhihao: link procone2.py<br />
20201108/lingu: rename to be workflow.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[bibo on limbo30]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9201</link>
			<pubDate>Thu, 29 Oct 2020 22:08:01 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9201</guid>
			<description><![CDATA[BIBO on limbo30 has quite some problems. The amount of resources may not be enough.]]></description>
			<content:encoded><![CDATA[BIBO on limbo30 has quite some problems. The amount of resources may not be enough.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[docsmatch]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9198</link>
			<pubDate>Sat, 24 Oct 2020 17:46:06 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9198</guid>
			<description><![CDATA[docsmatch is a C++ program like procone, but it may process multiple candidate docs at a time.]]></description>
			<content:encoded><![CDATA[docsmatch is a C++ program like procone, but it may process multiple candidate docs at a time.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[bug&#93; 长度过长的查询请求会使得无法收到返回值]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9188</link>
			<pubDate>Sun, 11 Oct 2020 23:27:35 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9188</guid>
			<description><![CDATA[使用"test_inquire_shen.sh"或"inquireany.sh processed/query_shenmou.json"查询会得不到返回值，因为query_shenmou.json请求包含20000多字符]]></description>
			<content:encoded><![CDATA[使用"test_inquire_shen.sh"或"inquireany.sh processed/query_shenmou.json"查询会得不到返回值，因为query_shenmou.json请求包含20000多字符]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO work environment]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9187</link>
			<pubDate>Sat, 10 Oct 2020 10:25:45 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9187</guid>
			<description><![CDATA[MIC file path: /thinker/etc/soft/bibo/mic.pcf<br />
<br />
bibo_base: BIBO installation local base dir. Default: /thinker/local/soft/bibo<br />
bibo_share: BIBO installation globe base dir. Default: /thinker/globe/soft/bibo]]></description>
			<content:encoded><![CDATA[MIC file path: /thinker/etc/soft/bibo/mic.pcf<br />
<br />
bibo_base: BIBO installation local base dir. Default: /thinker/local/soft/bibo<br />
bibo_share: BIBO installation globe base dir. Default: /thinker/globe/soft/bibo]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO -- M]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9173</link>
			<pubDate>Mon, 28 Sep 2020 12:11:01 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9173</guid>
			<description><![CDATA[BIBO code is current in cod://prada/procuratorate<br />
<br />
BIBO system will be installed on limbo30-2.<br />
<br />
<br />
There are three BIBO systems on <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9163" target="_blank">g1b</a>, <a href="http://tab.d-thinker.org/showthread.php?tid=15741" target="_blank">limbo30</a> and <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9178" target="_blank">wp289</a><br />
<br />
wp289系统设计为wp289-{1,2}安装一焘think/sage, 在wp289-3安装一套，形成一个CODA系统。在wp289-1, wp289-3各安装一套simpleserv访问点，分别服务上述两套Sage系统。但目前受资源限制，只装了覆盖所有三个节点的一套系统。<br />
<br />
BIBO use port 22,80,62818<br />
<br />
---<br />
20210812/zhihao: add bibo port<br />
20201130/lingu: add wp289<br />
20201007/zhihao: add g1b, limbo30, wp289]]></description>
			<content:encoded><![CDATA[BIBO code is current in cod://prada/procuratorate<br />
<br />
BIBO system will be installed on limbo30-2.<br />
<br />
<br />
There are three BIBO systems on <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9163" target="_blank">g1b</a>, <a href="http://tab.d-thinker.org/showthread.php?tid=15741" target="_blank">limbo30</a> and <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9178" target="_blank">wp289</a><br />
<br />
wp289系统设计为wp289-{1,2}安装一焘think/sage, 在wp289-3安装一套，形成一个CODA系统。在wp289-1, wp289-3各安装一套simpleserv访问点，分别服务上述两套Sage系统。但目前受资源限制，只装了覆盖所有三个节点的一套系统。<br />
<br />
BIBO use port 22,80,62818<br />
<br />
---<br />
20210812/zhihao: add bibo port<br />
20201130/lingu: add wp289<br />
20201007/zhihao: add g1b, limbo30, wp289]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO backend service]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9169</link>
			<pubDate>Sat, 26 Sep 2020 14:54:49 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9169</guid>
			<description><![CDATA[We should make BIBO backend a service.<br />
<br />
An example of starting sequence for the backend is in <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9169&amp;pid=43605#pid43605" target="_blank">http://rar.shufangkeji.com:60380/showthr...5#pid43605</a><br />
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9162" target="_blank">BIBO后台系统的设计</a>应考虑高并发访问，并提供几乎不间断服务。<br />
<br />
为此我们需要多个BIBO后台协同运行，也就是需要多个Data Thinker系统协同。为此我们扩展Data Thinker为CODA -- <a href="http://tab.d-thinker.org/showthread.php?tid=16288" target="_blank">http://tab.d-thinker.org/showthread.php?tid=16288</a><br />
<br />
客户端可访问任何一个访问点进行查询。<br />
<br />
---<br />
20201006/zhihao: add D info]]></description>
			<content:encoded><![CDATA[We should make BIBO backend a service.<br />
<br />
An example of starting sequence for the backend is in <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9169&amp;pid=43605#pid43605" target="_blank">http://rar.shufangkeji.com:60380/showthr...5#pid43605</a><br />
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9162" target="_blank">BIBO后台系统的设计</a>应考虑高并发访问，并提供几乎不间断服务。<br />
<br />
为此我们需要多个BIBO后台协同运行，也就是需要多个Data Thinker系统协同。为此我们扩展Data Thinker为CODA -- <a href="http://tab.d-thinker.org/showthread.php?tid=16288" target="_blank">http://tab.d-thinker.org/showthread.php?tid=16288</a><br />
<br />
客户端可访问任何一个访问点进行查询。<br />
<br />
---<br />
20201006/zhihao: add D info]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO tests]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9167</link>
			<pubDate>Sat, 26 Sep 2020 12:49:11 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9167</guid>
			<description><![CDATA[BIBO tests<br />
<br />
BIBO provides the following tests<br />
<br />
server_addr: server address<br />
bibo_server_addr="localhost"<br />
bibo_server_port=62818<br />
<br />
test_insert.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send insert request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "insert success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "insert failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
test_inquire_shen.sh: 用于测试处理20288个字符的查询请求时，是否会出现没有返回值的情况 <br />
test_inquire.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=chendengchang-with-blank-line.json<br />
ret = send inquire request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
flog_also_stderr=True<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "inquire success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "inquire failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
test_select.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=sel_zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send select request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "select success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "select failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9474" target="_blank">test_delete_zeng</a><br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9474" target="_blank">test_indel_zeng</a><br />
<br />
test_crds.sh: insert, inquire, select, delete and select.<br />
<br />
test_isds.sh: test selecting a non-existent and an existent case<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>./test_insert.sh<br />
./test_select.sh<br />
./test_delete.sh<br />
./test_select.sh</code></div></div>
<br />
test_isdsd.sh: test deleting a non-existent case<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>./test_isds.sh<br />
./test_delete.sh</code></div></div>
<br />
test_pressure.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>bibo_test_iter_cnt=1<br />
for (i in 1 to &#36;bibo_test_iter_cnt) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;./test_insert.sh<br />
&nbsp;&nbsp;&nbsp;&nbsp;./test_delete.sh<br />
&nbsp;&nbsp;&nbsp;&nbsp;./test_isdsd.sh<br />
}</code></div></div>
<br />
test_insert_testcase.sh: insert test_case.json which has caseid:"aaaaa..." and casetitle: "计算机案例"<br />
test_delete_testcase.sh: request to delete case with caseid "aaaaa..."<br />
<br />
Historical info:<br />
test_delete.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=del_zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send delete request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
---<br />
20210813/zhihao: add test case<br />
20210522/lingu: indel<br />
20201009/zhihao: add &#36;bibo_server_addr and &#36;bibo_server_port]]></description>
			<content:encoded><![CDATA[BIBO tests<br />
<br />
BIBO provides the following tests<br />
<br />
server_addr: server address<br />
bibo_server_addr="localhost"<br />
bibo_server_port=62818<br />
<br />
test_insert.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send insert request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "insert success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "insert failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
test_inquire_shen.sh: 用于测试处理20288个字符的查询请求时，是否会出现没有返回值的情况 <br />
test_inquire.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=chendengchang-with-blank-line.json<br />
ret = send inquire request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
flog_also_stderr=True<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "inquire success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "inquire failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
test_select.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=sel_zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send select request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "select success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "select failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9474" target="_blank">test_delete_zeng</a><br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9474" target="_blank">test_indel_zeng</a><br />
<br />
test_crds.sh: insert, inquire, select, delete and select.<br />
<br />
test_isds.sh: test selecting a non-existent and an existent case<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>./test_insert.sh<br />
./test_select.sh<br />
./test_delete.sh<br />
./test_select.sh</code></div></div>
<br />
test_isdsd.sh: test deleting a non-existent case<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>./test_isds.sh<br />
./test_delete.sh</code></div></div>
<br />
test_pressure.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>bibo_test_iter_cnt=1<br />
for (i in 1 to &#36;bibo_test_iter_cnt) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;./test_insert.sh<br />
&nbsp;&nbsp;&nbsp;&nbsp;./test_delete.sh<br />
&nbsp;&nbsp;&nbsp;&nbsp;./test_isdsd.sh<br />
}</code></div></div>
<br />
test_insert_testcase.sh: insert test_case.json which has caseid:"aaaaa..." and casetitle: "计算机案例"<br />
test_delete_testcase.sh: request to delete case with caseid "aaaaa..."<br />
<br />
Historical info:<br />
test_delete.sh:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casefile=del_zengxingliang.json<br />
flog_also_stderr=True<br />
ret = send delete request &#36;casefile to &#36;bibo_server_addr &#36;bibo_server_port<br />
if (&#36;ret == 200) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete success"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;flog "delete failed"<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 99<br />
}</code></div></div>
<br />
---<br />
20210813/zhihao: add test case<br />
20210522/lingu: indel<br />
20201009/zhihao: add &#36;bibo_server_addr and &#36;bibo_server_port]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[procone.py -- OMUD]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9166</link>
			<pubDate>Fri, 25 Sep 2020 00:15:31 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9166</guid>
			<description><![CDATA[procone.py is used for generating analysis result for one case.  <br />
<br />
在某一案例内容中搜索key{1,2,3}，构建"keys": [&#93;。<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>main() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;set &#36;tycajson_pfn as a insert.json<br />
&nbsp;&nbsp;&nbsp;&nbsp;get &#36;reqtype from &#36;tycajson_pfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;switch (&#36;reqtype) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "delete":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deleteIfMatch()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "select"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selectIfMatch()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deault:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query()<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</code></div></div>
<br />
deleteIfMatch()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casecnt: current case count<br />
biboext: &#36;bibo_share/bibo-ext.pcf , records current case count<br />
tycajson_pfn: file of json cases<br />
blank_json: the value of is {"opstatus":"deleted"}<br />
deleteIfMatch() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;rr=0<br />
&nbsp;&nbsp;&nbsp;&nbsp;if &#36;reqcaseid matches &#36;caseid{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rid --insitu &#36;tycajson_pfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create file &#36;tycajson_pfn with &#36;blank_json<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pcf --pcf &#36;biboext --add bibo_doc_cnt &#36;{casecnt}+1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;coolauntie rm &#36;tycano<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rr = 105 <br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;return rr<br />
}</code></div></div>
<br />
selectIfMatch()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>tycajson_pfn: file of json cases<br />
reqcaseid: reqest case id<br />
caseid: id of existing case<br />
tycano: case number it selects<br />
<br />
selectIfMatch() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if &#36;reqcaseid matches &#36;caseid<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return tycano<br />
}</code></div></div>
<br />
query()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>query() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate query response<br />
}</code></div></div>
<br />
delete_one_case():<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>fw: file handler of one result file<br />
newftexts: request content<br />
insblock: content of insert block of the case in the corpus<br />
blank_json: the value of is {"opstatus":"deleted"}<br />
delete_one_case(fw, newftexts, insblock){<br />
&nbsp;&nbsp;caseid = get caseid from insblock<br />
&nbsp;&nbsp;newcaseid = get caseid from newftexts<br />
&nbsp;&nbsp;if (&#36;caseid&nbsp;&nbsp;== &#36;newcaseid){<br />
&nbsp;&nbsp;&nbsp;&nbsp;write &#36;blank_json to &#36;fw<br />
&nbsp;&nbsp;}<br />
}</code></div></div>
<br />
---<br />
20210813/zhihao: update blank_json<br />
20210811/zhihao: add selectIfMatch<br />
20210811/zhihao: add delete_one_case<br />
20200926/zhihao: add switch in main()]]></description>
			<content:encoded><![CDATA[procone.py is used for generating analysis result for one case.  <br />
<br />
在某一案例内容中搜索key{1,2,3}，构建"keys": []。<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>main() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;set &#36;tycajson_pfn as a insert.json<br />
&nbsp;&nbsp;&nbsp;&nbsp;get &#36;reqtype from &#36;tycajson_pfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;switch (&#36;reqtype) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "delete":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deleteIfMatch()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "select"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selectIfMatch()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deault:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query()<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</code></div></div>
<br />
deleteIfMatch()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>casecnt: current case count<br />
biboext: &#36;bibo_share/bibo-ext.pcf , records current case count<br />
tycajson_pfn: file of json cases<br />
blank_json: the value of is {"opstatus":"deleted"}<br />
deleteIfMatch() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;rr=0<br />
&nbsp;&nbsp;&nbsp;&nbsp;if &#36;reqcaseid matches &#36;caseid{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rid --insitu &#36;tycajson_pfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create file &#36;tycajson_pfn with &#36;blank_json<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pcf --pcf &#36;biboext --add bibo_doc_cnt &#36;{casecnt}+1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;coolauntie rm &#36;tycano<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rr = 105 <br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;return rr<br />
}</code></div></div>
<br />
selectIfMatch()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>tycajson_pfn: file of json cases<br />
reqcaseid: reqest case id<br />
caseid: id of existing case<br />
tycano: case number it selects<br />
<br />
selectIfMatch() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if &#36;reqcaseid matches &#36;caseid<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return tycano<br />
}</code></div></div>
<br />
query()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>query() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate query response<br />
}</code></div></div>
<br />
delete_one_case():<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>fw: file handler of one result file<br />
newftexts: request content<br />
insblock: content of insert block of the case in the corpus<br />
blank_json: the value of is {"opstatus":"deleted"}<br />
delete_one_case(fw, newftexts, insblock){<br />
&nbsp;&nbsp;caseid = get caseid from insblock<br />
&nbsp;&nbsp;newcaseid = get caseid from newftexts<br />
&nbsp;&nbsp;if (&#36;caseid&nbsp;&nbsp;== &#36;newcaseid){<br />
&nbsp;&nbsp;&nbsp;&nbsp;write &#36;blank_json to &#36;fw<br />
&nbsp;&nbsp;}<br />
}</code></div></div>
<br />
---<br />
20210813/zhihao: update blank_json<br />
20210811/zhihao: add selectIfMatch<br />
20210811/zhihao: add delete_one_case<br />
20200926/zhihao: add switch in main()]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[test_crds.sh -- OMUD]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9165</link>
			<pubDate>Thu, 24 Sep 2020 23:31:54 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9165</guid>
			<description><![CDATA[This shell script is used for testing create, read, delete, query cases functions in BIBO system.<br />
<br />
<span style="font-weight: bold;">Designers' info</span><br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&#36;caseid: each case has a unique case id<br />
send insert request zengxingliang.json to trajan.d-thinker.org 20050<br />
<br />
output the inserted case content to the screen<br />
show case count after insert<br />
<br />
send delete request del_zengxingliang.json to trajan.d-thinker.org 20050 to delete cases matches &#36;caseid</code></div></div>
]]></description>
			<content:encoded><![CDATA[This shell script is used for testing create, read, delete, query cases functions in BIBO system.<br />
<br />
<span style="font-weight: bold;">Designers' info</span><br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&#36;caseid: each case has a unique case id<br />
send insert request zengxingliang.json to trajan.d-thinker.org 20050<br />
<br />
output the inserted case content to the screen<br />
show case count after insert<br />
<br />
send delete request del_zengxingliang.json to trajan.d-thinker.org 20050 to delete cases matches &#36;caseid</code></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO (D) [1 BUG, 2 TODOs&#93;]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9162</link>
			<pubDate>Thu, 24 Sep 2020 12:05:20 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9162</guid>
			<description><![CDATA[[bug&#93; delete_case function does not return 200<br />
TODO1: improve search function, 13 seconds is not fast<br />
TODO2 : add concurrent query support.<br />
<br />
This is disigners' info for cod://prada/procuratorate<br />
<br />
目前BIBO的运行比较复杂，要启动simpleserv和Data Thinker，并联通端口。<br />
另外，建议请把BIBO变成一个服务，用systemctl start bibo.service启动。<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9169" target="_blank">BIBO backend service</a>为BIBO系统的后台服务。<br />
<br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9187" target="_blank">BIBO work environment</a> 用于设置BIBO系统的运行环境</span><br />
<br />
simpleserv.sh<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>监听62818端口，执行&#36;bibo_base/talk2thinker.sh</code></div></div>
<br />
talk2thinker.sh<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>work() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;read &#36;newcasepfn till meet blank line<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;triage()<br />
}</code></div></div>
<br />
triage() informs think about the request.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&#36;tspfn: sage tasks<br />
<br />
triage() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;set &#36;casecnt as the number of cases<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;switch &#36;casetype {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "insert":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;insert_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "delete":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delete_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "query":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "select":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;set &#36;sage_user as sage2<br />
&nbsp;&nbsp;&nbsp;&nbsp;use program auntie&nbsp;&nbsp;to register &#36;tspfn<br />
}</code></div></div>
<br />
insert_case()<br />
bibo maintains &#36;casecnt as the total number of cases in the corpus.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>insert_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;create a new directory &#36;newdir, set its name as ++&#36;casecnt<br />
&nbsp;&nbsp;&nbsp;&nbsp;copy &#36;newcasepfn to be &#36;newdir/content<br />
&nbsp;&nbsp;&nbsp;&nbsp;auntie up --here=&#36;newdir &#36;casecnt<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate insert success response<br />
}</code></div></div>
<br />
delete_case()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>delete_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;clear file &#36;tspfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;reqcaseid = requested case id<br />
&nbsp;&nbsp;&nbsp;&nbsp;for each case; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set option &#36;tycano, &#36;reqtype and &#36;reqcaseid for procone.py<br />
&nbsp;&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;&nbsp;&nbsp;auntie register tasks<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate delete success response<br />
}</code></div></div>
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9628" target="_blank">query_case</a>()<br />
<del><div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>query_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;clear file &#36;tspfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;for each case; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set option &#36;tycano for procone.py<br />
&nbsp;&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;&nbsp;&nbsp;auntie register tasks<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate query result response<br />
}</code></div></div>
</del><br />
select_case() <br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>select_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;clear file &#36;tspfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;reqcaseid = requested case id<br />
&nbsp;&nbsp;&nbsp;&nbsp;for each case; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;register tasks:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;procone.py --tycano=&#36;tycano --reqtype=&#36;reqtype --reqcaseid=&#36;reqcaseid<br />
&nbsp;&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;&nbsp;&nbsp;getresults()<br />
}</code></div></div>
<br />
getResults() collect returned results from think.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>getresults() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scrutinize() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generate response for each case<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generate response for all cases<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return response<br />
}</code></div></div>
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9168" target="_blank">scrutinize()</a> examines intermediate result files and generates an overall result file.<br />
<br />
---<br />
20220718/zhihao: add 2 todos<br />
20210813/lingu: detail insert<br />
20210810/lingu: link query case<br />
20201010/zhihao: add BIBO work environment<br />
20200929/zhihao: add BIBO backend service<br />
20200926/zhihao: add select_case()<br />
20200926/lingu: run &#36;bibo_base/talk2thinker.sh<br />
20200925/zhihao: add delete_case bug<br />
20200925/zhihao: move procone.py<br />
20200924/zhihao: update title to BIBO (D)<br />
20200924/zhihao: update tellThinker function]]></description>
			<content:encoded><![CDATA[[bug] delete_case function does not return 200<br />
TODO1: improve search function, 13 seconds is not fast<br />
TODO2 : add concurrent query support.<br />
<br />
This is disigners' info for cod://prada/procuratorate<br />
<br />
目前BIBO的运行比较复杂，要启动simpleserv和Data Thinker，并联通端口。<br />
另外，建议请把BIBO变成一个服务，用systemctl start bibo.service启动。<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9169" target="_blank">BIBO backend service</a>为BIBO系统的后台服务。<br />
<br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9187" target="_blank">BIBO work environment</a> 用于设置BIBO系统的运行环境</span><br />
<br />
simpleserv.sh<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>监听62818端口，执行&#36;bibo_base/talk2thinker.sh</code></div></div>
<br />
talk2thinker.sh<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>work() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;read &#36;newcasepfn till meet blank line<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;triage()<br />
}</code></div></div>
<br />
triage() informs think about the request.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&#36;tspfn: sage tasks<br />
<br />
triage() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;set &#36;casecnt as the number of cases<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;switch &#36;casetype {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "insert":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;insert_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "delete":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delete_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "query":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case "select":<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select_case()<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;set &#36;sage_user as sage2<br />
&nbsp;&nbsp;&nbsp;&nbsp;use program auntie&nbsp;&nbsp;to register &#36;tspfn<br />
}</code></div></div>
<br />
insert_case()<br />
bibo maintains &#36;casecnt as the total number of cases in the corpus.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>insert_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;create a new directory &#36;newdir, set its name as ++&#36;casecnt<br />
&nbsp;&nbsp;&nbsp;&nbsp;copy &#36;newcasepfn to be &#36;newdir/content<br />
&nbsp;&nbsp;&nbsp;&nbsp;auntie up --here=&#36;newdir &#36;casecnt<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate insert success response<br />
}</code></div></div>
<br />
delete_case()<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>delete_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;clear file &#36;tspfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;reqcaseid = requested case id<br />
&nbsp;&nbsp;&nbsp;&nbsp;for each case; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set option &#36;tycano, &#36;reqtype and &#36;reqcaseid for procone.py<br />
&nbsp;&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;&nbsp;&nbsp;auntie register tasks<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate delete success response<br />
}</code></div></div>
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9628" target="_blank">query_case</a>()<br />
<del><div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>query_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;clear file &#36;tspfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;for each case; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set option &#36;tycano for procone.py<br />
&nbsp;&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;&nbsp;&nbsp;auntie register tasks<br />
&nbsp;&nbsp;&nbsp;&nbsp;generate query result response<br />
}</code></div></div>
</del><br />
select_case() <br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>select_case() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;clear file &#36;tspfn<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;reqcaseid = requested case id<br />
&nbsp;&nbsp;&nbsp;&nbsp;for each case; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;register tasks:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;procone.py --tycano=&#36;tycano --reqtype=&#36;reqtype --reqcaseid=&#36;reqcaseid<br />
&nbsp;&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;&nbsp;&nbsp;getresults()<br />
}</code></div></div>
<br />
getResults() collect returned results from think.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>getresults() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scrutinize() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generate response for each case<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generate response for all cases<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return response<br />
}</code></div></div>
<br />
<a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9168" target="_blank">scrutinize()</a> examines intermediate result files and generates an overall result file.<br />
<br />
---<br />
20220718/zhihao: add 2 todos<br />
20210813/lingu: detail insert<br />
20210810/lingu: link query case<br />
20201010/zhihao: add BIBO work environment<br />
20200929/zhihao: add BIBO backend service<br />
20200926/zhihao: add select_case()<br />
20200926/lingu: run &#36;bibo_base/talk2thinker.sh<br />
20200925/zhihao: add delete_case bug<br />
20200925/zhihao: move procone.py<br />
20200924/zhihao: update title to BIBO (D)<br />
20200924/zhihao: update tellThinker function]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIBO -- O]]></title>
			<link>http://rar.shufangkeji.com:60380/showthread.php?tid=9121</link>
			<pubDate>Thu, 03 Sep 2020 22:53:58 +0800</pubDate>
			<guid isPermaLink="false">http://rar.shufangkeji.com:60380/showthread.php?tid=9121</guid>
			<description><![CDATA[<span style="text-decoration: underline;">[done&#93; p1. implement delete function in procone.py<br />
[todo&#93; p2. make bibo a module -- cod://bibo  It installs the client and mid-tier programs of bibo including the tests.<br />
</span><br />
<br />
BIBO means BIBliOgraphy. BIBO matches an article with most related articles in an corpus.<br />
<br />
We <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9173" target="_blank">maintain</a> several BIBO systems.<br />
<br />
<span style="text-decoration: underline;">There is <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9627" target="_blank">BIBO system on wp289b</a></span><br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9620" target="_blank">We build a BIBO system on limbo305</a></span><br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9163" target="_blank">We build BIBO system on g1b for procuratorate</a> (this system will be moved to limbo30-2 soon</span><br />
<br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9162" target="_blank">We record designers' info for cod://prada/procuratorate</a></span><br />
<br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9630" target="_blank">Users' info about BIBO</a></span><br />
<br />
---<br />
20210812/zhihao: link U info<br />
20210809/zhihao: link BIBO on wp289b<br />
20210808/zhihao: BIBO on limbo305<br />
20201006/zhihao: add BIBO M info<br />
20200926/zhihao: add p2<br />
20200924/zhihao: move designers' info and BIBO system<br />
20200923/zhihao: add &#36;bibo_base<br />
20200923/zhihao: update tellThinker and procone.py<br />
20200923/lingu: split blocks.<br />
20200923/zhihao: update talk2thinker pseudocode<br />
20200922/zhihao: add designers' info<br />
20200917/lingu: specify simpleserv igate.<br />
20200915/linye: add Designers' info and Maintainers' info.<br />
20200909/zhihao: add cog]]></description>
			<content:encoded><![CDATA[<span style="text-decoration: underline;">[done] p1. implement delete function in procone.py<br />
[todo] p2. make bibo a module -- cod://bibo  It installs the client and mid-tier programs of bibo including the tests.<br />
</span><br />
<br />
BIBO means BIBliOgraphy. BIBO matches an article with most related articles in an corpus.<br />
<br />
We <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9173" target="_blank">maintain</a> several BIBO systems.<br />
<br />
<span style="text-decoration: underline;">There is <a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9627" target="_blank">BIBO system on wp289b</a></span><br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9620" target="_blank">We build a BIBO system on limbo305</a></span><br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9163" target="_blank">We build BIBO system on g1b for procuratorate</a> (this system will be moved to limbo30-2 soon</span><br />
<br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9162" target="_blank">We record designers' info for cod://prada/procuratorate</a></span><br />
<br />
<span style="text-decoration: underline;"><a href="http://rar.shufangkeji.com:60380/showthread.php?tid=9630" target="_blank">Users' info about BIBO</a></span><br />
<br />
---<br />
20210812/zhihao: link U info<br />
20210809/zhihao: link BIBO on wp289b<br />
20210808/zhihao: BIBO on limbo305<br />
20201006/zhihao: add BIBO M info<br />
20200926/zhihao: add p2<br />
20200924/zhihao: move designers' info and BIBO system<br />
20200923/zhihao: add &#36;bibo_base<br />
20200923/zhihao: update tellThinker and procone.py<br />
20200923/lingu: split blocks.<br />
20200923/zhihao: update talk2thinker pseudocode<br />
20200922/zhihao: add designers' info<br />
20200917/lingu: specify simpleserv igate.<br />
20200915/linye: add Designers' info and Maintainers' info.<br />
20200909/zhihao: add cog]]></content:encoded>
		</item>
	</channel>
</rss>