2018-08-27

cmark-gfm and tcl-cmark (cmark-0.28.3.gfm.15)

cmark-gfm-spec
tcl-cmark-spec


cmark-0.28.3.gfm.15 是個不向前相容的版本(Normalised header and define names),所以如果使用這個版本,tcl-cmark 會編譯失敗。而且 cmark-gfm library 的名稱也有變動,所以無法單純在 source code 使用 cmark-gfm 的版本區隔來處理。

我先做了緊急處理,讓 tcl-cmark 加個 patch 以後不會編譯失敗。等原作者發現然後修改以後,再來看要怎麼做進一步處理。

2018-08-16

EMQ/emqttd (Erlang MQTT Broker)

EMQ (Erlang MQTT Broker) is a distributed, massively scalable, highly extensible MQTT message broker written in Erlang/OTP.

在 openSUSE 從 source code 安裝,需要下列的套件:
sudo zypper in erlang erlang-observer

(erlang/otp version 需要 >= R17)

再來是下載 source code 並且編譯:
git clone https://github.com/emqtt/emq-relx.git
cd emq-relx && make

如果要執行的話:
cd _rel/emqttd && ./bin/emqttd console


再來使用 tcl.mqttc 驗證是否可以正確連線,這只是進行簡單的驗證。
Subscribe:
package require mqttc

mqttc client "tcp://localhost:1883" "USERSSub" 1 -cleansession 1 
client subscribe  "MQTT Examples" 1
while 1 {
    if {[catch {set result [client  receive]}]} {
        puts "Receive error!!!"
        break
    }
    if {[llength $result] > 0} {
        puts "[lindex $result 0] - [lindex $result 1]"
        if {![string compare -nocase [lindex $result 1] "Exit"]} {
            break
        }
    }
}
client unsubscribe  "MQTT Examples"
client close

Publish:
package require mqttc

mqttc client "tcp://localhost:1883" "USERSPub" 1 -timeout 1000
client publishMessage "MQTT Examples" "Hello MQTT!" 1 0
client publishMessage "MQTT Examples" "Exit" 1 0
client close

先執行 Subscribe 的部份,再使用 Publish 發送訊息,確定可以正確執行。

2018-08-08

Apache Rivet transition from svn to git complete

Rivet transition from svn to git complete

The migration from svn is now complete, the svn repository is now read only and every new commit has to be pushed to either GitBox (https://gitbox.apache.org/repos/asf/tcl-rivet.git) or GitHub (https://github.com/apache/tcl-rivet.git)


Apache Rivet 從 SVN 遷移到 Git,而且在 Github 有一個 mirror。

2018-08-01

tDOM 0.9.1

ANNOUNCE: tDOM 0.9.1
下載網址

(更新:我找到更新訊息了,所以有發佈更新訊息)

The most notable changes since the last release are:
- The included expat is now 2.2.5, the most recent expat release.
- An interface to use expat as pull parser (StAX like).
- Some minor options for more control about parsing ([dom parse
  -keepCDATA]) and serialization (asXML -nogtescape
  --noEmptyElementTag).
- A few bug fixes important to whom are bitten by them.


因為下載網址已經放上去檔案了,所以我更新了我自己的 openSUSE RPM spec,將版本更新到 0.9.1。