Sunday, December 31, 2023

Thursday, December 28, 2023

A Small Issue To Compile Usb-notify Program 2023

A Small Issue To Compile Usb-notify Program 2023

undefined reference to notify_notification_new

I like the usb-notify program a lot. This small little program displays a notification on the Linux desktop when a USB device is plugged in.

To compile I need libnotify-dev, libudev-dev package.

$ git clone https://github.com/wcampbell0x2a/usb-notify
$ cd usb-notify
$ make
⇒ bin/usb-notify

Note: Need notification-daemon running to show the notification.

It should just compile and be successful. If it doesn't it is just a small issue, but this small issue took me 1.5 days to try out many other ways, for example trying to recompile the dependency libraries.

This is what I get:

$ gcc -ansi -pedantic -g -std=c99 -W -Wextra -Wall \
`pkg-config --cflags --libs libnotify` \
-o bin/usb-notify src/usb-notify.o -ludev

undefined reference to `notify_notification_new'

Keep story short, there is no missing libnotify, as 'pkg-config --libs libnotify' will return '-lnotify' (refer to libnotify.a or libnotify.so), is just has to be put at the back of the compile statement:

$ gcc -o bin/usb-notify src/usb-notify.o -ludev `pkg-config --libs libnotify`

So you might just need to modify the Makefile will do.

Monday, December 04, 2023

How To Apply RM100 Government eWallet Incentive 2023

How To Apply RM100 Government eWallet Incentive 2023

Malaysia government give RM100 incentive for those those who is eligible. The RM100 can be applied through the following eWallet, Touch'n Go eWallet, MAE (Maybank), Shopee Pay, SETEL (Petronas?). Applying period is from 2023 5 December to 2024 20 February.

This RM100 can only be spent on merchants, not transferable or paying bills.

MAE

MAE app > eMadini icon > fill in information and submit.

Touch'n Go eWallet

TNG eWallet > eMadani banner > [x] agree T&C > Claim Now

OR

TNG eWallet > Profile (top right icon) > Inbox/Alert (top right) > click on the notification > confirm MyKad information > [x] agree T&C > Claim Now

Sunday, October 29, 2023

Johor Pay 2023

Johor Pay 2023



I am trying to help my aunt to make payment to property assessment fee in Johor, one of the electronic payment options is Johor Pay.

Sarawak Pay may have a chance of success, even if it is not, the residents are happily using it. Johor Pay has less of a chance, as Malaysia already has nationwide DuitNow QR, quite popular and accepted by many merchants. Is easier to ride on DuitNow QR rather than maintain its own payment network and platform.

Many Singaporeans came over to Johor Bahru. Johor Pay has to cater for Singaporean identification and mobile phone. When Johor Pay users go to Singapore or other states, they can't use Johor Pay, they have to use DuitNow.

The limitation of Johor Pay will limit the market expansion.

It is just my 2 cents.

Thursday, October 19, 2023

The mount point of Google drive in Chrome OS Linux

The mount point of Google drive in Chrome OS Linux

Chrome OS > File app > (right click on Google Drive) > select [ share to linux ]

From Chrome OS Linux, the mount point is:
/mnt/chromeos/GoogleDrive/MyDrive

Tuesday, October 17, 2023

Get Your Own Toucn'n Go eWallet QR Code

Get Your Own Toucn'n Go eWallet QR Code



TNG eWallet > Transfer > Receive (tab)

Your QR code is displayed. Your friend can scan the code and transfer money to you.

Friday, October 06, 2023

Upgrade Raspberry Pi Desktop 2022 to Debian 12

Upgrade Raspberry Pi Desktop 2022 to Debian 12



Much older Rpi Desktop

The reason I want to upgrade the Raspberry Pi Desktop to Debian 12 Bookworm is just to try out the new Linux kernel 6. The older kernel 5, released in 2019, is about 3-4 years old.

The upgrade takes me around 4 hours on my (older) machine. After upgrading, a lot of the Raspberry Pi Desktop settings were changed, and seems slower at the first glance. My advice is not to upgrade until the official release is out for Raspberry Pi Desktop OS.

How to upgrade?

Change the APT source from Bullseye (version 11) to Bookworm (12). Bullseye and bookworm are the code name for the Debian OS version.

  
# edit /etc/apt/sources.list /etc/apt/sources.list.d/raspi.list
eg. deb http://deb.debian.org/debian bookworm main contrib non-free