Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Thursday, August 29, 2024

How to enable secure2u in Maybank MAE mobile app

How to enable secure2u in Maybank MAE mobile App


Maybank has 2 mobile app

The older Maybank2u app and newer MAE. MAE has eWallet and some other features. Old Maybank2u app will be retired.

What is Secure2u?

Secure2u is the security feature to replace the 6 digits OTP (One Time Password) from SMS. It send notification through the app, and approve with the Maybank2u app or MAE app. Secure2u will be the preferred method for Maybank2u online transactions.

Almost with no choice, you will need to install a Maybank online app. Maybank still keep the SMS OTP TAC as an option, not sure when it last.

Refer https://www.maybank2u.com.my/maybank2u/malaysia/en/personal/services/digital_banking/secure2u.page

Install MAE

Note: You need to choose a 6 digits PIN for MAE eWallet transaction.

If you already have Maybank2u app, you can just activate secure2u in Maybank2u app.

Install MAE for the first time, you need to create a 6 digits PIN. You may need to create a new MAE account for eWallet, or you can use your existing account.

Note: How to change MAE eWallet limit?

Reference. https://www.maybank2u.com.my/iwov-resources/pdf/upload/maeapp/MAEApp_FAQ_202009.pdf

How to enable Secure2u?

From quick access menu, click the secure2u icon, and follow the instructions.

Conclusion

Things to take note:

1. The transaction approval time is short. I normally need to login the MAE (or Maybank2u) app, get ready before I preform online transaction. I experience time out issues, if do not get it ready.

2. MAE doesn't logout automatically when it was not used. You need to secure your mobile phone with your passcode. (Hope Maybank can fix this in the future)

Note: MAE seems loading and perform quite slow.

Theoritically it is more secure to use the mobile app for online transactions compare to the SMS OTP. You must secure your mobile phone and the online banking app.

Thursday, July 25, 2024

JTKE LTE 4G USB Modem Simple Review

JTKE LTE 4G USB Modem Simple Review

I am using my phone as an Internet modem, and it is overheating.

So I took out the JTKE LTE 4G USB modem to connect to the Internet. I bought this modem at quite a cheap price, yes it does not have 5G, maybe that is the reason it is cheap.

This is not just a modem, it can be a wifi router as well. It uses the normal SIM card, not the nano or micro SIM card. I am not sure it is called the mini SIM card. Is not the name card size SIM card as well. A lot of the people may not know or have forgotten, the very first version of the SIM card is actually (name) card size SIM card.

Pro. It is working as it should be. Cheap, easy to setup. USB modem and wifi router.

Cons. Wifi is always working, but the USB modem only working for Windows 11 only, other OS may need more effort to get it to work.

Configuration

The preset SSID (hotspot name) and password is printed on the USB modem. Another admin (and password) is use to change the SSID and password of the modem. To change the SSID, password or admin password, just use a browser access to http://192.168.100.1/

macOS (Ventura 13)

Wifi access is no problem. I have issues getting it working as a USB modem on macOS. Since nothing was written on the modem or user manual, I am not sure what chipset the modem is using. I guess it is Huawei, trying to install the Huawei driver, but either unable to install on the macOS Ventura properly, or it is not the correct driver.

Later I found it was stated on the online merchant website, it is using a Qualcomm 9600 chipset. I can not confirm, as I can't find the driver for macOS.

Windows 11

It just plug and play, working ok on Windows 11 without any configuration. It Seems like Windows is still the best support for third party hardware.

Chrome OS 2024

It can detect the modem, but is unable to connect to the Internet.

Debain 12 Linux

Haven't tested yet.

Thursday, July 18, 2024

QEMU with command line

QEMU with command line


Introduction

QEMU is Quick emulator. This tutorial works on Qemu 9.0.1.

Installation

Debian: $ apt install qemu
Homebrew: $ brew install qemu
Linuxbrew: $ brew install qemu

Using qemu

Create image:

$ qemu-img create -f qcow2 alpine_disk.qcow2 12G
$ ls alpine_disk.qcow2
⇒ only created a 192k image file, even though it was stated to be 12G. The file will grow if it needs more space.

Launch QEMU

$ qemu-system-x86_64 \
-enable-kvm -m 2G -smp 1 \
-hda alpine_disk.qcow2 \
-boot d -cdrom alpine_linux.iso \
-netdev user,id=net0,net=192.168.0.0/24 \
-device virtio-net-pci,netdev=net0 \
-vga virtio \
-device AC97

## if no AC97 audio, just remove it
## -enable-kvm, use kernel kvm virtualization
## -cpu host, if you have this error warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

Hardware virtualization

Modern CPUs have hardware virtualization. Qemu performs much faster with hardware virtualization. For macOS, no KVM, use -machine type=q35,accel=hvf, for macOS virtualization framework.

## Linux -enable-kvm
## macOS -machine type=q35,accel=hvf

Install Alpine Linux

Choose Alpine Linux as an example, because it is small and simple.

Installation:

1. keymap (us,us)
2. network setting use default or [dhcp]
3. timezone [Singapore]
4. mirror [1]
5. add in new user (other than root) with username and password
6. Which disk to use [none]? sda ## depends on your system
7. How would you like to install it (sys, data, lvm…)? sys
8. Erase disk? y

Alpine Linux on Qemu

After the OS installation:

$ qemu-system-x86_64 \
-m 1G -smp 1 \
-hda alpine_disk.qcow2 \
-netdev user,id=net0,net=192.168.0.0/24 \
-device virtio-net-pci,netdev=net0 \
-nodisplay

Qemu display
## -nographic, not creating another window
## -vga virtio -display default, shows progress and login prompt

Reset terminal

If you need to reset terminal for word wrap.
$ reset
$ tput smam

Ssh from host to guest OS

Using ,hostfwd=tcp::2222-:22

## map host os port 2222 to guest os port 22
$ qemu-system-x86_64 \

-netdev user,id=net0,net=192.168.0.0/24,hostfwd=tcp::2222-:22


$ ssh user@localhost -p 2222

Thursday, July 04, 2024

Unix Compress Tips (gz xz etc)

Unix Compress Tips (gz xz etc)

Another incomplete jumpstart tutorial or tips for unix compression.

There are a few types of unix compress format eg. gz, bz2, what are the differences? Z is very old unix compress, probable no one is using it now. The gz and bz2 (bzip2) is quite common for compressing text base file, eg. source code. The gz and bz2 format existed and commonly use for a long time (80s, 90s to...).

The xz is newer, it has a better compression ratio, but it also takes more resources (cpu and ram), normally used to compress large binary files. The Zip is very common in Windows systems.

The is how to compress 2 files, dummy and hello.txt:

## compress found in debian ncompress package
## '-c' to create archive, '-O' to output to stdout
## '-cO' same with '-c --to-stdout'
## '-cO' same with '-cf -'
$ tar -cO dummy hello.txt | compress -c > hello.tar.Z
⇒ hello.tar.Z

## gz, -z for gz
$ tar -czf hello.tar.gz dummy hello.txt

## bzip2, -j (capital J)
$ tar -cjf hello.tar.bz2 dummy hello.txt
⇒ hello.tar.bz2 in gzip2 format

## xz, -J
$ tar -cJf hello.tar.xz dummy hello.txt
⇒ hello.tar.xz in xz format

## zip
$ zip -r hello.zip dummy hello.txt

updating: dummy (stored 0%)
updating: hello.txt (deflated 49%)

Hope you enjoy these quick tips.

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

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.

Thursday, April 28, 2022

Print Transaction History Receipt RHB Maybank2u 2022

Print Transaction History Receipt RHB Maybank2u 2022

Re-print the receipt from online banking is an important function. As a prove to the receipiant party a transaction has been done. You can reprint it in RHB and Maybank2u, through the old website and not the new website (yet).

Maybank2u classic

Switch to the classic website.


Maybank2u classic (old) > Account & Banking > Account Details > M2U history > [ Reprint ]

Those transactions done by mobile app, can be reprint as well.

RHB Now

Note : If your transactions are done with the mobile app or the new website, the transaction receipt can not be re-printed again. Only transactions done with RHB Now web version can be re-printed again.

RHB Now > RHB Now Transaction Records (above/besides the email button) > choose date range and type of transaction.

    Account number :[   ]
    From: [    ] dd/mm/yyyy
    To:   [    ] dd/mm/yyyy
    ---- down here has a long list of selection ----
    (I only show some of it)
    JomPay
    [ ] Favourite Biller
    [ ] Open Payment
    
    [Submit]

Conclusion

Maybank2u is easier, and more powerful.

Thursday, April 21, 2022

How To Deregister Fire HD Tablet

How To Deregister Amazon Fire HD Tablet

If you want to give away your Amazon Fire HD tablet to the others (as a gift or selling it), make sure it is deregister with you user account. This apply to other Alexa devices as well.

There are a few ways to deregister:

From the device (Fire HD)

Fire OS > Settings > My Account > [DEREGISTER]

Refer to the picture above.

From the web (need Amazon login)

For me this is easiest and powerful. Not just for deregister, but other configuration and setting as well. Remember this website https://amazon.com/mycd/:

Devices tab > (choose Fire Tablet) > (choose table or device name) > [Deregister]

You can change your device name from here as well.

From Alexa mobile app

Alexa app > Devices tab (lower right) > Echo & ALEXA > setting icon (top right) > Registered To [Deregister]

Note: This doesn't works for my Fire TV stick, and Fire HD tablet. It works for Echo Show, Echo Dot, and some other 3rd party devices.

Tuesday, February 08, 2022

Android Grant Drawing Over Other Apps

Android Grant "Drawing over other apps"

Application like SpeedMeter, Assistive Touch may report error or issue about "Drawing over other apps"

You need ADB to grant "Drawing over other apps"


1. find out the package name of the app:
$ adb shell pm list packages

For examples:
com.tuanfadbg.assistivetouchscreenrecorder
visnkmr.apps.timenetspeed

2. grant access
$ adb appops set visnkmr.apps.timenetspeed SYSTEM_ALERT_WINDOW allow

Now you should be able to enable the SpeedMeter or the Assistive Touch apps.

Thursday, September 10, 2020

How to Stop U Mobile Auto-renew Service

How to Stop U Mobile Auto-renew Service

After subscribing to U mobile add-on services, the services normally will be auto renewed. To stop the auto review, use UMB *118*3*6#, choose 5:

5 Stop auto renewal

1 GT30
2 V20/30
Choose 1 to stop GT30 auto renewal. Wait for the confirmation message.

To break down each steps:
118 ⇒ account balance and other options
3 ⇒ Internet/Services
6 ⇒ unlimited calls
5 ⇒ stop auto renewal
1 ⇒ GT30

Wednesday, June 03, 2020

Add to iTunes as Spoken Track (OSStatus error -1743.)

Add to iTunes as Spoken Track (OSStatus error -1743.)




Add spoken track to iTunes (macOS Mojave)


macOS text to speech


You can highlight a text in macOS application (eg. Safari, Text Edit), convert the text to audio and add it to iTunes:

Safari > Services > Add to iTunes as a Spoken Track
or
Right click > Services > Add to iTunes as a Spoken Track

If you don't get the services, enable it in System Preferences:



Enable add to iTunes as a Spoken Track

System Preferences > Keyboard > Shortcuts > Services > Text (x) Add to iTunes as a Spoken Track

“Import Audio Files” error: (OSStatus error -1743.)


I am getting an error, every time I try to convert the text to speech in preview application:

The action “Import Audio Files” encountered an error: “The operation couldn’t be completed. (OSStatus error -1743.)”

I know why I am getting this, because I choose "Don't Allow" when I choose text to iTunes audio track when I first use the function.



I choose "Don't Allow", but I want to change it later.

Now I want to use the text to iTunes audio track, I need to enable it. It takes me some time to get it back. It is here:



Allow Preview application to access iTunes

System Preferences > Security & Privacy > Privacy tab > Automation > Preview (x) iTunes.

Now I can add audio track to iTunes from Preview application, without the error.

Sunday, February 11, 2018

Compile PHP PostgreSQL undefined symbol lo_lseek64() error

Upgrade PHP with PostgreSQL connect support


My php installed on OS X doesn't have PostgreSQL connect support, I need an upgrade.
$ brew install php56 --with-postgresql [--with-httpd]
doesn't work for my, so I try to compile manually from source.
Download the source from php.net. For PREFIX, you can set it to your preferred location, the /usr/local/Cellar location is used by Homebrew.

$ ./configure --prefix=/usr/local/Cellar/php/7.2.2 --with-pgsql=/usr/local/Cellar/postgres/10.2

This compile successfully, but I am not replacing the old php on the system, the apache always load the old php version. I need libphp.so (libphp5.so or libphp7.so) for apache to locate the new php.


$ ./configure --prefix=/usr/local/Cellar/php/7.2.2 --with-pgsql=/usr/local/Cellar/postgres/10.2 --with-apxs2=`which apxs`
(apxs command is from Apache)
This fail.
There are 3 groups of undefined symbols

1. undefined symbol _lo_lseek64()
- error from PostgreSQL, some issue with the configuration, I link it to libpq.a to solve.
2. undefined symbol _SSL_XXX
- link openssl-1.1, which is an older version on my system
3. Disable GSSAPI on Postgresql
- $ brew edit postgresql, delete --with-gssapi
- $ brew reinstall postgresql

You might not experience all the 3 issues.
How to link the missing library?
$ edit php-7.2.2/Makefile
For a quick hack, I just add in MH_BUNDLE_FLAGS =
either -L/usr/local/Cellar/postgresql/10.2 -lpq or /usr/local/Cellar/postgresql/10.2/lib/libpq.a
openssl
-L/usr/local/Cellar/openssl@1.1/lib -lcrypto -lssl
or
/usr/local/Cellar/openssl@1.1/lib/libcryptio.a /usr/local/Cellar/openssl@1.1/lib/libssl.a

My system is Mac OS X 10.9 Mavericks, Homebrew. I have tried compiling php-5.6 and php-7.2, both seems ok for me. I try php7.
$ ./configure --prefix=/usr/local/Cellar/php72/7.2.2_13 --with-mysqli=/usr/local/Cellar/mysql/5.6.25/bin/mysql_config --with-pdo-mysql=/usr/local/Cellar/mysql/5.6.25 --with-pgsql=/usr/local/Cellar/postgresql/10.2 --with-pdo-pgsql=/usr/local/Cellar/postgresql/10.2 --with-apxs2=`which apxs`
$ cp libs/libphp7.so /usr/local/libexec

$ edit /etc/apache2/httpd.conf
# LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/libexec/libphp5.so
LoadModule php7_module /usr/local/libexec/libphp7.so

$ sudo apachectl stop
$ sudo apachectl -M
...
rewrite_module (shared)
php5_module (shared)
php7_module (shared)
hfs_apple_module (shared)
Syntax OK
$ sudo apachectl start
$ curl http://localhost/php/phpinfo.php
()

PHP Version 7.2.2

PostgreSQL Support enabled

Thursday, October 06, 2016

Solve Rails Native Compile Issue

I seldom blog about issue on Windows, because I don't really have a Windows machine with me. This will be an exceptional case that I show how to solve a Rails' native compile issue.

If you see an error from Rails on Windows system, something similar like this

c:> gem install son
...
ERROR: Error installing json:
ERROR: Failed to build gem native extension

The reason is, gem try to build native library to improve performance, but it was not able to do it on your Windows system.

The easiest is to install DevKit from http://rubyinstaller.org/downloads/. The DevKit will be installed at c:\DevKit. Just take note which DevKit to be installed, 32 bits or 64 bits.

Set Windows system PATH environment:
Control Panel > System > Advanced system settings
System Properties > Environment Variables > (Select Path and Edit...), add a new Path
c:\DevKit\bin

start a new command prompt (cmd):
c:> gem install json

You should be able to install json now.