Friday, 1 November 2019

MathJax Support

Inisialisasi 


<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    showProcessingMessages: false,
    tex2jax: { inlineMath: [['[latex]','[/latex]']] }
  });
</script>
<script>
window.MathJax = {
  tex: {
    inlineMath: [ ['[latex]','[/latex]']],
processEscapes: true,
  },
  svg: {
    fontCache: 'global'
  }
};
</script>
<script type="text/javascript" id="MathJax-script" defer
  src="/mathjax/es5/tex-svg.js">
</script>

Konten Dinamis via Ajax 

Setelah konten via ajax selesai diload, jalankan script berikut :

MathJax.typesetPromise().then(() => {
// modify the DOM here
MathJax.typesetPromise();
}).catch((err) => console.log(err.message));

Ukuran Huruf 

Untuk mengubah ukuran huruf MathJax, dapat menggunakan CSS :

.MathJax {
  font-size: 1.3em;
}

Referensi

  1. MathJax, http://docs.mathjax.org/en/v3.0-latest/
  2. LaTeX Tabular environment, https://github.com/mathjax/mathjax-docs/wiki/LaTeX-Tabular-environment

Instalasi : Pemeriksaan Kemiripan Persamaan Matematika

MIaS

MIaS merupakan subsistem yang digunakan untuk memeriksa kemiripan persamaan baik itu matematika, kimia ataupun fisika.

Berikut adalah langkah langkah untuk menginstall MIaS.

cd mias/
./install.sh

Kemudian beberapa konfigurasi berikut di edit application/config.php

$config['webmias_url']                               = $config['site_protocol']."://".$config['site_domain'].":8080/WebMIaS-1.6.6-4.10.4-SNAPS$
$config['cli_mias_url']                              = $config['site_protocol']."://".$config['site_domain']."/indexing/cliMias";
$config['latex2mathml_url']                          = $config['site_protocol']."://".$config['site_domain']."/indexing/latex2MathML";
$config['indexed_formula_course_arr']                = [4] ;// [4,7,9,14,37]; //MAD, MAA, Fisika, Numerik
$config['tampilkan_kemiripan_di_kumpulan_soal']      = 0 ;

Latex2MathML

cd application/bin/Latex2MathML/
mvn clean install

Saturday, 26 October 2019

Item Banking

...

Referensi


  1. Item banking, https://www.slideshare.net/rawezhibrahim/item-banking-rawezh-april-282014
  2. Developments in Item Banking, https://www.rasch.org/memo76.pdf
  3. Item Banking With Rasch Measurement: an Example for Primary Mathematics in Thailand, https://ro.ecu.edu.au/cgi/viewcontent.cgi?article=1007&context=ceducom
  4. Item Banking for State and Local Test Development and Use: Specific Guidelines for Local Practitioners., https://eric.ed.gov/?id=ED242763
  5. Using automatic item generation to create multiple-choice test items, https://www.researchgate.net/publication/229158837_Using_automatic_item_generation_to_create_multiple-choice_test_items
  6. The effectiveness of automatic item generation for the development of cognitive ability tests, https://www.repository.cam.ac.uk/handle/1810/289990
  7. The Role of Item Models in Automatic Item Generation, https://www.researchgate.net/publication/239794821_The_Role_of_Item_Models_in_Automatic_Item_Generation
  8. Evaluation of Automatic Item Generation Utilities in Formative Assessment Application for Korean High School Students, https://files.eric.ed.gov/fulltext/EJ1174470.pdf
  9. Automatic Item Generation: Theory and Practice, https://books.google.com.sg/books/about/Automatic_Item_Generation.html?id=vJic_ov2gEQC&redir_esc=y
  10. Computerized Adaptive Testing with R: Recent Updates of the Package catR, https://www.jstatsoft.org/article/view/v076c01

Friday, 1 February 2019

Instalasi : Supervisor

Mac


/usr/local/etc/supervisord.ini


/usr/local/etc/supervisor.d/elasticsearch.ini

/usr/local/etc/supervisor.d/searchapi.ini

/usr/local/etc/supervisor.d/indexer.ini

Saturday, 5 January 2019

Instalasi : Mac OS

Status : Draft


brew cask install mactex

Jika koneksi lambat, disarankan mendownload paket MacTex melalui torrent.

brew install python3
brew tap homebrew/cask
brew cask install phantomjs
brew install imagemagick
brew install cairo
brew install p7zip
easy_install pip

cd banksoal/
pip install -r requirements.txt
pip3 install -r requirements.txt


install PIL 1.1.7 [2]
install pdftk [3]
install pgAdmin [4]


PHP-FPM

Jika Anda mendaptkan error, seperti berikut ketika proses konversi Latex ke Image di browser :

convert: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r360x360' '-sOutputFile=/var/tmp/magick-424wzOPTYa4oUUs%d' '-f/var/tmp/magick-424b_MRRkTxfwQT' '-f/var/tmp/magick-4247LVcZCDEEICo'' (1) @ error/pdf.c/InvokePDFDelegate/290.

Maka tambahkan konfigurasi berikut di /usr/local/etc/php/7.1/php-fpm.d/www.conf (sesuaikan dengan versi PHP yang And gunakan) :

env[PATH] = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Elasticsearch


Untuk memastikan konfigurasi Elasticsearch sudah benar, jalankan perintah berikut :

supervisord -c  /usr/local/etc/supervisord.ini

Referensi 


  1. MacTex, http://www.tug.org/mactex/mactex-download.html
  2. PIL 1.1.7, http://www.pythonware.com/products/pil/#pil117
  3. pdftk, https://www.pdflabs.com/tools/pdftk-server/
  4. pgAdmin, https://www.pgadmin.org/download/

Wednesday, 24 October 2018

Dokumentasi : Pemeriksaan Kemiripan Persamaan Matematika

Status : Draft 

Pemeriksaan kemiripan persamaan matematika di sistem informasi bank soal, meminjman kekuatan dari MIaS [1].

Secara periodik, controller indexing/dumpNaskahAsXhtml dan  script banksoal/application/bin/indexingMath.sh harus dijalankan, agar proses pemeriksaan kemiripan persamaan matematika dapat berjalan sebagaimana mestinya.

Referensi


  1. MIaS : Menggunakan MIas Untuk Indexing dan Pencarian Persamaan Matematika, http://software.openthinklabs.com/2017/10/mias-menggunakan-mias-untuk-indexing-dan-pencarian-persamaan-matematika.html

Tuesday, 7 March 2017

Elasticsearch

Status : Draft

Untuk proses pencarian teks, gambar dan persamaan matematika Bank Soal menggunakan elasticsearch [1].

Konfigurasi Elasticsearch 



Ketika menggunakan settingan default, terkadang, query ke soal Kimia terjadi error berikut :

Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024

Ketika menaikkan nilai indices.query.bool.max_clause_count di banksoal//elasticsearch/elasticsearch- 5.0.0/config/elasticsearch.yml menjadi 10000

indices.query.bool.max_clause_count: 10000
Alhamdulillah, error nya lenyap.

Referensi


  1. Belajar Bareng Elastic Search http://elastic.openthinklabs.com/