Tuesday, 23 May 2017

Open Data Kit : ODK Scan

Status : Draft


Build


Error 1 :

OpenCV-2.3.1/share/OpenCV/../../include/opencv2/flann/any.h:88:67: error: call to function 'operator<<' that is neither visible in the template
      definition nor found by argument-dependent lookup

Solusi, terapkan patch berikut [sumber]:

diff --git a/modules/flann/include/opencv2/flann/any.h b/modules/flann/include/opencv2/flann/any.h
index 46e1116..06db1b2 100644
--- a/modules/flann/include/opencv2/flann/any.h
+++ b/modules/flann/include/opencv2/flann/any.h
@@ -30,6 +30,12 @@ struct empty_any
 {
 };
 
+inline std::ostream& operator <<(std::ostream& out, const empty_any&)
+{
+    out << "[empty_any]";
+    return out;
+}
+
 struct base_any_policy
 {
     virtual void static_delete(void** x) = 0;
diff --git a/modules/flann/include/opencv2/flann/lsh_index.h b/modules/flann/include/opencv2/flann/lsh_index.h
index a777990..6ed5740 100644
--- a/modules/flann/include/opencv2/flann/lsh_index.h
+++ b/modules/flann/include/opencv2/flann/lsh_index.h
@@ -56,7 +56,7 @@ namespace cvflann
 
 struct LshIndexParams : public IndexParams
 {
-    LshIndexParams(unsigned int table_number, unsigned int key_size, unsigned int multi_probe_level)
+    LshIndexParams(unsigned int table_number = 12, unsigned int key_size = 20, unsigned int multi_probe_level = 2)
     {
         (* this)["algorithm"] = FLANN_INDEX_LSH;
         // The number of hash tables to use

Error 2

armeabi] SharedLibrary  : libbubblebot.so
/home/wildan/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/atomicity.h:49: error: undefined reference to '__atomic_fetch_add_4'
/home/wildan/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/atomicity.h:49: error: undefined reference to '__atomic_fetch_add_4'
/home/wildan/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/atomicity.h:49: error: undefined reference to '__atomic_fetch_add_4'
/home/wildan/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/atomicity.h:49: error: undefined reference to '__atomic_fetch_add_4

Solusi : 

Edit : 

bubblebot_lib/jni/Android.mk

Tambahkan -latomic di LOCAL_LDLIBS :

LOCAL_LDLIBS += $(OPENCV_LIBS) $(ANDROID_OPENCV_LIBS) -llog -ldl -lGLESv2 -latomic                                                                   
 

Referensi


  1. ODK Scan Wiki and Issues, https://github.com/opendatakit/scan

Monday, 22 May 2017

Open edX : the open source platform that powers edX courses.

Status : Draft


Instalasi


Untuk instalasinya mudah, di dokumentasinya cukup jelas, singkatnya :

1. mkdir devstack && cd devstack
2. set environment variables di .bashrc , sehingga output nya:

echo $OPENEDX_RELEASE
open-release/ficus.3

3. curl -OL https://raw.github.com/edx/configuration/$OPENEDX_RELEASE/util/install/install_stack.sh

4.  chmod +x install_stack.sh

5. ./install_stack.sh

6. Nyalakan VM dan masuk ke VM dengan perintah vragrant up && vragrant ssh

Selanjutnya bisa membaca [2]

Referensi

  1. Open edX, https://open.edx.org/
  2. Running Devstack, https://openedx.atlassian.net/wiki/display/OpenOPS/Running+Devstack

Thursday, 18 May 2017

Solusi E-Commerce Open Source

Status : Draft


Konektifa

Konektifa [3] tidak open source, hanya konsepnya sepertinya menarik.

Referensi

  1. OpenShop.io, Open-source mobile E-commerce platform, http://openshop.io/
  2. Sylius, First eCommerce framework that grows with your business, http://sylius.org/
  3. Konektifa, https://konektifa.com/

Sunday, 14 May 2017

LaTeXML : A LaTeX to XML/HTML/MathML Converter

Status : Draft

Prasyarat Kompilasi 

Agar make test semuanya terlewati, berikut adalah paket-paket yang perlu diinstall

sudo apt-get install   \
  libarchive-zip-perl libfile-which-perl libimage-size-perl  \
  libio-string-perl libjson-xs-perl libtext-unidecode-perl \
  libparse-recdescent-perl liburi-perl libuuid-tiny-perl libwww-perl \
  libxml2 libxml-libxml-perl libxslt1.1 libxml-libxslt-perl  \
  texlive-latex-base texlive-full imagemagick libimage-magick-perl

Untuk cara kompilasi bisa lihat di [2]


Referensi

  1. LaTeXML, http://dlmf.nist.gov/LaTeXML/
  2. LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator, https://github.com/brucemiller/LaTeXML, https://github.com/brucemiller/LaTeXML

Tangent : Salah Satu Tool untuk Maths Information Retrieval

Status : Draft


Requirement


Tangent menggunakan Pyhton 3, beberapa library  yang diperlukan :

  1. Beautiful Soup, pip3 install beautifulsoup4

Instalasi 


Untuk instalasi sudah jelas, tinggal jalankan make all. Misal kita setelah mendownload Tangent, menempatkannya di direktori :

/home/wildan/jobstuff/openthinklabs/eksperimen/tangent/tangent.0.3.1

Maka di .bashrc kita perlu menambahkan variabel PYTHONPATH, agar kode tangent bisa kita jalankan :

export PYTHONPATH=/home/wildan/jobstuff/openthinklabs/eksperimen/tangent/tangent.0.3.1/tangent_code:$PYTHONPATH                                       
Jika ketika running masih terjadi error seperti : https://github.com/OpenThink-Labs/Tangent/blob/master/log1.txt 

Langkah yang dilakukan untuk mengatasinya adalah :

  1.  menguninstall latexml bawaan sistem, dan melakukan kompilasi ulang LaTeXML terbaru, http://software.openthinklabs.com/2017/05/latexml-latex-to-xmlhtmlmathml-converter.html 
  2. dan sedikit perbaikan https://github.com/OpenThink-Labs/Tangent/commit/3e7807ae52fa38ca0a523e288432f271b97f2ba4
Seharusnya, jika semua sudah Ok, output python2 index.py akan seperti ini :

https://github.com/OpenThink-Labs/Tangent/blob/master/log4.txt

Referensi


  1. Kemiripan Persamaan Matematika, http://software.openthinklabs.com/2015/11/kemiripan-persamaan-matematika.html

Friday, 12 May 2017

Apache Fineract untuk E-Koperasi

Status : Draft


Apache Fineract 


Dari situs nya Fineract didefinidikan sebagai [1] :

Apache Fineract (\’fīn-,ә-,rakt\) is an open source system for core banking as a platform. Fineract provides a reliable, robust, and affordable solution for entrepreneurs, financial institutions, and service providers to offer financial services to the world’s 2 billion underbanked and unbanked.

Fineract Provider


Untuk instalasi Fineract Provider dapat mengikut petunjuk di [2].

MifosX Community App


Fineract-provider hanya memiliki APIs, untuk itu kita memerlukan aplikasi untuk memanfaatkan,
salah satu user interface, yang dapat kita  gunakan adalah, commuity app Mifos X [3]


Referensi

  1. Apache Fineract, http://fineract.apache.org/
  2. Apache Fineract: A Platform for Microfinance, https://github.com/apache/incubator-fineract
  3. MifosX Community App, https://github.com/openmf/community-app
  4. Apache Fineract untuk E-Koperasi, https://github.com/OpenThink-Labs/ApacheFineract