Buku Gratis Data Mining

Berikut ini beberapa buku data mining yang nampaknya bagus (dari situs http://christonard.com/12-free-data-mining-books/):

  1. An Introduction to Statistical Learning with Applications in R by James, Witten, Hastie & Tibshirani – . 426 Pages.
  2. The Elements of Statistical Learning by Hastie, Tibshirani & Friedman – 745 Pages.
  3. A Programmer’s Guide to Data Mining by Ron Zacharski –
  4. Probabilistic Programming & Bayesian Methods for Hackers by Cam Davidson-Pilson –
  5. Think Bayes, Bayesian Statistics Made Simple by Allen B. Downey –. 195 Pages.
  6. Data Mining and Analysis, Fundamental Concepts and Algorithms by Zaki & Meira –  599 Pages.
  7. An Introduction to Data Science by Jeffrey Stanton –  195 Pages.
  8. Machine Learning by Chebira, Mellouk & others –  422 Pages.
  9. Machine Learning – The Complete Guide
  10. Bayesian Reasoning and Machine Learning by David Barber – 648 Pages.
  11. A Course in Machine Learning by Hal Daumé III – . 189 Pages.
  12. Information Theory, Inference and Learning Algorithms by David J.C. MacKay – 628 Pages.
  13. Modeling with Data by Ben Klemens –  454 Pages.
  14. Mining of Massive Datasets by Rajaraman & Ullman . 493 Pages

Redmine Installation Problems in Ubuntu 18.04.03

Problems encountered while installing Redmine 3.4.4 in Ubuntu 18.04.03

PROBLEM #1 Cannot Build SQLite3

# gem update
Updating installed gems
Updating sqlite3
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.4.1/ext/sqlite3
/usr/bin/ruby2.5 -r ./siteconf20190813-10918-113tafq.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'brew install sqlite3',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:

To see why this extension failed to compile, please check the mkmf.log which can be found here:


extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/sqlite3-1.4.1 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/sqlite3-1.4.1/gem_make.out
Updating web-console
ERROR: Error installing web-console:
Unresolved dependency found during sorting - activesupport (>= 4.2.0) (requested by rails-dom-testing-2.0.3)
Gems updated: sqlite3

SOLUTION: as suggested in the error message, just install libsqlite3-dev:

apt-get install libsqlite3-dev

PROBLEM #2: cannot update webconsole

# gem update
Updating installed gems
Updating web-console
ERROR: Error installing web-console:
Unresolved dependency found during sorting - activesupport (>= 4.2.0) (requested by rails-dom-testing-2.0.3)
Nothing to update

as in https://stackoverflow.com/questions/56084457/getting-error-when-installing-web-console

‘gem install -f web-console’

PROBLEM #3: Cannot bundle install

bundle install is needed to upgrade all gems to latest versions.

> bundle install --without development test
Traceback (most recent call last):
1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.16.1/exe/bundle (LoadError)



Ref: https://github.com/bundler/bundler/issues/6227
Just run:

gem update --system
gem uninstall bundler
gem install bundler
bundle install

this solution doesn’t not always work

SOLUTION #2: Use old bundler


gem install bundler -v 1.17.3 # Currently the latest bundler version < 2.0
bundle _1.17.3_ install

Instalasi Redmine 3.4.4-stable di Ubuntu 18.04.03

At the moment of writing this article, default installation in Ubuntu 18.04.03 will give you Redmine version 3.4.4.-stable

Installing Redmine 3.4.4-stable in 18.04.03
Use live server ISO (ubuntu-18.04.3-live-server-amd64.iso)

# reference: How to Install Redmine on Ubuntu step by stepapt-get update
apt-get upgrade

# install dependencies
apt install apache2 software-properties-common ruby-rmagick mysql-server mysql-client mysql-common ruby-dev build-essential libmysqlclient-dev libssl-dev gcc libmysqlclient-dev libapache2-mod-passenger libmagickcore-dev
apt install imagemagick-6.q16
apt-get install redmine redmine-mysql

# there may be questions from installer. Refer to Howto Install Redmine on Ubuntu www.redmine.org/projects/redmine/wiki/howto_install_redmine_on_ubuntu_step_by_step for explanation

# Next step is to upgrade all gems. It will take sometime to update all gems.

gem update

# possible error: connection problem.
# example erro message: Updating roadie
ERROR: Error installing roadie:
Unable to resolve dependency: user requested ‘roadie (= 3.5.0)’

gem install bundler

vi /etc/apache2/mods-available/passenger.conf

existing file:

<IfModule mod_passenger.c>
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby

Create symlink:

ln -s /usr/share/redmine/public /var/www/html/redmine

edit as follows:

<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby

edit file:

vi /etc/apache2/sites-available/000-default.conf

add the following lines:

<Directory /var/www/html/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on

Create Gemlock file:

touch /usr/share/redmine/Gemfile.lock
chown www-data:www-data /usr/share/redmine/Gemfile.lock

service apache2 restart

browse to your website:

with username: admin,
password: admin

You can check Redmine information in by following the menu : [Administration] -> [Information]

It will show something like this:

Default administrator account changed
Attachments directory writable
Plugin assets directory writable (./public/plugin_assets)
RMagick available (optional)
ImageMagick convert available (optional)

Redmine version 3.4.4.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
Rails version 4.2.10
Environment production
Database adapter Mysql2
Git 2.17.1
Redmine plugins:
no plugin installed


Redmine 3.4.4-stable

Instalasi Redmine 4.01 di Ubuntu 19.04

Prosedur instalasi Redmine di Ubuntu secara umum dapat dibaca di http://www.redmine.org/projects/redmine/wiki/howto_install_redmine_on_ubuntu_step_by_step , namun untuk setiap versi Ubuntu ada kemungkina perbedaan-perbedaan kecil.

Instalasi Aplikasi Pendukung

Berikut ini proses instalasi aplikasi pendukung Redmine:

apt-get update
apt-get remove cryptsetup-initramfs #optional, karena kadang-kadang kalau apt-get upgrade jadi macet di sini
apt-get upgrade
apt-get install apache2 software-properties-common ruby-rmagick mysql-server mysql-client mysql-common
apt-get install ruby-dev build-essential libmysqlclient-dev libssl-dev gcc libmysqlclient-dev
apt-get install libapache2-mod-passenger # untuk integrasi apache-passenger
apt-get install libmagickcore-dev # untuk rmagick , menghindari pesan “ERROR: Can’t install RMagick 4.0.0.” https://stackoverflow.com/questions/28324439/cant-install-rmagick-0-0-0-cant-find-magick-config
apt-get install redmine redmine-mysql
gem update
gem install bundler

Konfigurasi Apache

edit file /etc/apache2/mods-available/passenger.conf 


PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby

ditambah “PassengerDefaultUser www-data” menjadi:

PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby

tambahkan symlink:

ln -s /usr/share/redmine/public /var/www/html/redmine

edit file /etc/apache2/sites-available/000-default.conf , tambahkan sebagai berikut:

<Directory /var/www/html/redmine>
    RailsBaseURI /redmine
    PassengerResolveSymlinksInDocumentRoot on

Tambahkan file lock untuk Gemfile

touch /usr/share/redmine/Gemfile.lock
chown www-data:www-data /usr/share/redmine/Gemfile.lock

Restart Apache supaya konfigurasi dibaca ulang:

service apache2 restart

cek di browser:

ke alamat

default username: admin, default password: admin
setelah login akan diminta untuk mengganti password


Tampilan Administrator -> Information

Redmine 4.01 Information