Finding diff from terminal ouput and hexdumping chars

20 June 2018 | 1 min read

I know how to dump a string and check hex code via piping the output from terminal to hexdump for example :

$ echo ‘–allowerasing’ | hexdump -C
00000000  e2 80 98 e2 80 93 61 6c  6c 6f 77 65 72 61 73 69  |......allowerasi|
00000010  6e 67 e2 80 99 0a                                 |ng....|
00000016

But when comes to compare string, I cannot just use diff YY ZZ as like comparing files and I found out using dollar sign $(echo YY) are not acceptable and failed to process but I figure out the workaround, which is to use <(echo ZZ) to create temporary named pipes:

$ diff <(echo ‘‐‐allowerasing’ | hexdump -C) <(echo ‘–allowerasing’ | hexdump -C) 
1,3c1,3
< 00000000  e2 80 98 e2 80 90 e2 80  90 61 6c 6c 6f 77 65 72  |.........allower|
< 00000010  61 73 69 6e 67 e2 80 99  0a                       |asing....|
< 00000019
---
> 00000000  e2 80 98 e2 80 93 61 6c  6c 6f 77 65 72 61 73 69  |......allowerasi|
> 00000010  6e 67 e2 80 99 0a                                 |ng....|
> 00000016

Financial Freedom..123

30 May 2018 | 6 min read

Within past 2 years (since 2016) there is significant impact to Malaysia economy and thanks to the slower economy pace which burden our financial status right now, I truly starting to acknowledge the importance of budgeting or at least, saving more money!

There are no secrets to success. It is the result of preparation, hard work, and learning from failure Colin Powell

As the quote said, lets plan to achieve our financial goal.

(read more)


20 June 2018 | 1 min read

(read more)


Fedora 28 setup (After install)

17 May 2018 | 7 min read

What is about?

Fedora 28 already released maybe this is a perfect time to do clean format instead of upgrading the newest version because previously started from Fedora 25, I just upgrade when each time new version released.

Todo

Yes, there is lot of thing need to be configure again after clean formating. Here few of thing on my list :

1 - Change the hostname (note : Need to reboot after change the host name)

$ hostnamectl status # view current hostname
$ hostnamectl set-hostname --static "robbinespu" # set up new hostname

2 - Configure DNF : Use delta and fastest mirror (edit /etc/dnf/dnf.conf file)

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
fastestmirror=true
deltarpm=true

(read more)


Al-fatihah untuk Prof Madya Dr Hj Mohd Sazali Bin Khalid

17 May 2018 | 1 min read

Pada tarikh 14 May 2018 yang lepas, saya telah dimaklumkan bahawa salah seorang pensyarah saya di UTHM iaitu Profesor Madya Dr Hj Mohd Sazali Bin Khalid telah meninggal dunia akibat pecah pembuluh darah aorta di HUSM.

Kehilangan beliau amat terasa di kalbu, rasa macam tak percaya :’(

(read more)