Installing go1.10.1 (Fedora 27)

08 April 2018 | 1 min read

I had problem with current version of Go that available on Fedora 27 repository

$ dnf info golang
Last metadata expiration check: 21 days, 11:46:56 ago on Sat 17 Mar 2018 11:15:37 PM +08.
Available Packages
Name         : golang
Version      : 1.9.4
Release      : 1.fc27
Arch         : x86_64
Size         : 622 k
Source       : golang-1.9.4-1.fc27.src.rpm
Repo         : updates
Summary      : The Go Programming Language
URL          : http://golang.org/
License      : BSD and Public Domain
Description  : The Go Programming Language.

I unable to install any library with go get command

$ go version
go version go1.9.4 linux/amd64

$ go get github.com/andlabs/ui
go build github.com/andlabs/ui: invalid flag in #cgo LDFLAGS: /home/rnm/Workspaces/Golang/src/github.com/andlabs/ui/libui_linux_amd64.a

$ go get github.com/pebbe/tokenize
go build github.com/pebbe/tokenize: invalid flag in #cgo CFLAGS: -finput-charset=UTF-8

(read more)


Get started with Golang

06 April 2018 | 5 min read

I heard and see lot of articles about Go / Golang which mention lot of advantages of Go compare with other languange such Python, Java, PHP, and C/C++. This is interesting and caught my curiousity.

(read more)


Reset the MariaDB Root Password

29 March 2018 | 1 min read

If you forget your root MariaDB password, don’t worry and be sad because it can be reset easily with this tutorial.

  1. Stop the current MariaDB server instance, then restart it with an option to not ask for a password:

     $ sudo systemctl stop mariadb
     $ sudo mysqld_safe --skip-grant-tables &
    
  2. Reconnect to the MariaDB server with the MariaDB root account:

     $ mysql -u root
    
  3. Use the following commands to reset root’s password. Replace password with a strong password:

     use mysql;
     update user SET PASSWORD=PASSWORD("password") WHERE USER='root';
     flush privileges;
     exit
    
  4. Then restart MariaDB:

     $ sudo systemctl start mariadb
    

Done, everything will be fine. Now you should be able to access again with new password we update before.


Ways to Kill Your MySQL Application

29 March 2018 | 1 min read


Jenis polisi insurans kenderaan

28 March 2018 | 3 min read

Pelindungan Insyurans Kenderaan Terdapat 3 jenis polisi pelindungan insurans dan kadang-kala aku lupa apa beza tiga jenis tersebut semasa nak memperbaharui insurans tersebut. Okeylah, aku rasa adalah lebih baik dan bermanfaat untuk aku membuat catatan disini supaya boleh buat rujukan bersama.

Mengambil insurans kenderaan adalah mandatori @ wajib di Malaysia. Dengan mengambil pelindungan ini, kenderaan akan dilindungi dari segi kos kerugian sekiranya berlaku perkara yang tidak di ingini seperti kemalangan ataupun kecurian.

Untuk maklumat ia adalah menjadi kesalahan sekira memandu dan menunggang kenderaan yang tidak memiliki insurans.

(read more)